Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default JSbuilder2 error

    JSbuilder2 error


    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?

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

  2. #2
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    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!

    Code:
    {
    	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"
        }]
    }

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    test.all.js is an unusual name. What happens if you change it to test-all.js?

  4. #4
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    OK I tried that condor but i get the same exact error.. it creates the debug file and then stops.

  5. #5
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


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

  6. #6
    Sencha User
    Join Date
    Jun 2007
    Posts
    125
    Vote Rating
    1
    bhaidaya is on a distinguished road

      0  

    Default


    Is anyone using JSBuilder2 successfully? can anyone post a small example file of a working export?