PDA

View Full Version : JSbuilder2 error



bhaidaya
24 Sep 2009, 9:35 AM
I'm running JSBuilder2 command line on Windows Vista and Getting the following error..

It actually builds the '-debug.js' version of the file and then fails to create the minified version. Any ideas?


Loading the 'Test Project' Project
Loaded 1 Packages
Building the 'motoui - all' package as 'compiled/test.all-debug.js'
- There are 12 file include(s).
- - ../app/overrides/overrides-bugfixes.js
- - ../app/overrides/overrides-enhancements.js
- - ../app/overrides/vtypes.js
- - ../app/forms/config.forms.js
- - ../app/forms/config.forms.Test.js
- - ../app/forms/config.forms.Import.js
- - ../app/layout/config.print.js
- - ../app/layout/config.NavPanel.js
- - ../app/layout/config.TaskUIPanel.js
- - ../app/layout/config.AppHeaderPanel.js
- - ../app/layout/KRI.languages.English.js
- - ../app/layout/applayout.js
Exception in thread "main" java.lang.NullPointerException
at com.extjs.FileHelper.listFiles(FileHelper.java:103)
at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
at com.extjs.JSBuilder2.main(JSBuilder2.java:44)

bhaidaya
25 Sep 2009, 5:38 AM
Here is the jsb2 file as well incase i'm doing something wrong there.

All the files included get put in a SRC directory but that is it.. no build directory and no minification. Hoping someone can see my folly. Thanks!



{
projectName: 'Test Project',
deployDir: '',
licenseText : '',
pkgs: [{
name: 'test - all',
file: 'compiled/test.all.js',
fileIncludes: [
{text:'overrides-bugfixes.js', path:'../app/overrides/'},
{text:'overrides-enhancements.js', path:'../app/overrides/'},
{text:'vtypes.js', path:'../app/overrides/'},
{text:'config.forms.js', path:'../app/forms/'},
{text:'config.forms.Product.js', path:'../app/forms/'},
{text:'config.forms.Import.js', path:'../app/forms/'},
{text:'config.print.js', path:'../app/layout/'},
{text:'config.NavPanel.js', path:'../app/layout/'},
{text:'config.TaskUIPanel.js', path:'../app/layout/'},
{text:'config.AppHeaderPanel.js', path:'../app/layout/'},
{text:'KRI.languages.English.js', path:'../app/layout/'},
{text:'applayout.js', path:'../app/layout/'}
]
}],
resources: [{
src: '../app/',
dest: '/src/',
filters: ".*\\.js"
}]
}

Condor
25 Sep 2009, 6:31 AM
test.all.js is an unusual name. What happens if you change it to test-all.js?

bhaidaya
26 Sep 2009, 8:34 AM
OK I tried that condor but i get the same exact error.. it creates the debug file and then stops.

bhaidaya
26 Sep 2009, 8:50 AM
I also tried removing all the included files that had dots in their name with the same result. I also reduced it to just one JS file (tried a few) with the same results..

bhaidaya
3 Oct 2009, 12:23 PM
Is anyone using JSBuilder2 successfully? can anyone post a small example file of a working export?

Shai_Hulud
25 Oct 2009, 10:17 AM
Is anyone using JSBuilder2 successfully? can anyone post a small example file of a working export?
nop, tryed migrate from JSBuilder 1 to JsBuilder 2, and all i got is


Loading the 'My project' Project
Loaded 12 Packages
Building the 'Admin package' package as '/scripts/pkgs/pkg-admin-debug.js' <-- first package
The filename, directory name, or volume label syntax is incorrect
Failed to create targets with fileIncludes.
Building the 'Website All' package as '/scripts/website-compiled-debug.js' <-- resulting package
This package is built by included dependencies.
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at com.extjs.JSBuilder2.createTargetsWithDeps(JSBuilder2.java:237)
at com.extjs.JSBuilder2.main(JSBuilder2.java:42)
Failed to create target with package dependencies.
Exception in thread "main" java.lang.NullPointerException
at com.extjs.FileHelper.listFiles(FileHelper.java:103)
at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
at com.extjs.JSBuilder2.main(JSBuilder2.java:44)

No clue what shout i do.

aalpha.org
29 Oct 2009, 12:32 AM
nop, tryed migrate from JSBuilder 1 to JsBuilder 2, and all i got is


Loading the 'My project' Project
Loaded 12 Packages
Building the 'Admin package' package as '/scripts/pkgs/pkg-admin-debug.js' <-- first package
The filename, directory name, or volume label syntax is incorrect
Failed to create targets with fileIncludes.
Building the 'Website All' package as '/scripts/website-compiled-debug.js' <-- resulting package
This package is built by included dependencies.
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at com.extjs.JSBuilder2.createTargetsWithDeps(JSBuilder2.java:237)
at com.extjs.JSBuilder2.main(JSBuilder2.java:42)
Failed to create target with package dependencies.
Exception in thread "main" java.lang.NullPointerException
at com.extjs.FileHelper.listFiles(FileHelper.java:103)
at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
at com.extjs.JSBuilder2.main(JSBuilder2.java:44)

No clue what shout i do.
we can do the help which u required