-
20 Jul 2011 5:17 AM #1
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 ?
-
20 Jul 2011 3:24 PM #2Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
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
-
20 Jul 2011 5:29 PM #3
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...
-
15 Oct 2011 5:23 AM #4
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 ../..
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote