开发者

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 ?


In *.bat file parameter --projectFile should be provided with full path like c:\.... it make the difference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜