1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    44
    Vote Rating
    0
    grubi is on a distinguished road

      0  

    Default JSBuilder2 usage

    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

    Code:
    {
       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.

  2. #2
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,965
    Vote Rating
    12
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default

    From what I can tell, your paths are relative to the jsb2 file:

    Code:
    java -jar ..\..\..\jsbuilder2\JSBuilder2.jar --projectFile D:\pathToJSB\project.jsb2 --homeDir D:\projectHome
    You mileage may vary.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #3
    Sencha User
    Join Date
    Sep 2009
    Posts
    44
    Vote Rating
    0
    grubi is on a distinguished road

      0  

    Default

    Quote Originally Posted by hendricd View Post
    From what I can tell, your paths are relative to the jsb2 file:

    Code:
    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.

  4. #4
    Ext User
    Join Date
    Aug 2009
    Posts
    127
    Vote Rating
    0
    rblon is on a distinguished road

      0  

    Default

    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?

Thread Participants: 2