1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    10
    Vote Rating
    0
    Bensiu is on a distinguished road

      0  

    Default js builder file no find exception

    js builder file no find exception


    I try to run JSBuilder script (*.bat file):

    "java.exe" -jar JSBuilder2.jar --projectFile "script_name.jsb2" --homeDir "C:\Users\Tomasz\Desktop" --verbose


    in script_name.jsb2 I got:

    {
    "projectName": "Name",
    "deployDir": "\\Name\\Deploy",
    "licenseText": "licence",
    "pkgs": [{
    "name": "Name",
    "file": "Name.js",
    "isDebug": true,
    "fileIncludes": [ {
    "text": "file1.js",
    "path": "\\Name\\"
    },{
    "text": "file2.js",
    "path": "\\Name\\"
    }]
    }],
    "resources": []
    }


    and I got error:

    java.io.FileNotFoundException: null\Name\file1.js

    I can not find how `null` is coming from ? files and folders (homeDir) existing, - this is Windows 7, on different one (XP) similar script has no such problems...

    What I am missing ?

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Are you sure you need to escape those slashes like that? Perhaps that's causing the issue
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    10
    Vote Rating
    0
    Bensiu is on a distinguished road

      0  

    Default


    removing one or both slashes, exchanging them for backslash regardless of using single or double quotes still return same error...

    java.io.FileNotFoundException: null\file1.js ...

    homeDir is setup but somehow word 'null' starts the path to js file regardless is attribute 'path' in 'fileIncludes' is empty string or got value...

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    dnemoga is on a distinguished road

      0  

    Default


    You should use full path to .jsb2 in your command line.

    For example:
    Code:
    java -jar bin/JSBuilder2.jar --projectFile D:\Project\project.jsb2 --homeDir ../..

Thread Participants: 2

Tags for this Thread