PDA

View Full Version : JSBuilder2 usage



grubi
7 Nov 2009, 6:56 AM
Hi.

I'm trying to get the JSBuilder2 working to no avail. Seems that I miss something. I tried with the following minimal project file


{
projectName: 'userEnvManager',
deployDir: 'js',
pkgs:[{
name: 'all',
file: 'all.js',
isDebug: true,
fileIncludes: [{
text: 'main.js',
path: 'js/src/'
}]
}]
}
The only thing I get when running JSBilder2 are two empty 'js' files called 'all' and 'all-debug' at the proper location. As these files are created I assume that pathes are specified correctly.

Thanks for your help.

hendricd
7 Nov 2009, 7:05 AM
From what I can tell, your paths are relative to the jsb2 file:



java -jar ..\..\..\jsbuilder2\JSBuilder2.jar --projectFile D:\pathToJSB\project.jsb2 --homeDir D:\projectHome

You mileage may vary. :-?

grubi
7 Nov 2009, 7:15 AM
From what I can tell, your paths are relative to the jsb2 file:



java -jar ..\..\..\jsbuilder2\JSBuilder2.jar --projectFile D:\pathToJSB\project.jsb2 --homeDir D:\projectHome

You mileage may vary. :-?

Ok that did it.
I assumed pathes are relative to the homedir.
Thanks for helping.

rblon
11 Nov 2009, 2:23 AM
I also have some issues getting JSBuilder2 to run. A description like:

"File Descriptors:
- text: String describing the file to be included
- path: String describing the directory of file to be included"

is not clear to me. Is text the filename? And path is relative to which directory?

Anyway, before going any further, I was wondering if writing a script that does the concatenation and employs YUI compressor gives the same result? If so, that seems easier than getting the JSBuilder project file correct. If not, I am wondering what the difference is?