Hybrid View

  1. #1
    Ext User
    Join Date
    Jun 2007
    Posts
    18
    Vote Rating
    0
    mark.lancaster is on a distinguished road

      0  

    Default Can you have comments in the JSB2 file?

    Can you have comments in the JSB2 file?


    I'm trying to build a cut down version of the Ext All library by commenting out unwanted components in a copy of the ext.jsb2 file.

    I've tried to comment out lines using // and /* */, but this results in errors when you attempt to build:

    PHP Code:
    Missing value at character 26375
    Failed to open project file
    .
    java.lang.NullPointerException
            at com
    .extjs.JSBuilder2.createTempHeaderFile(JSBuilder2.java:141)
            
    at com.extjs.JSBuilder2.main(JSBuilder2.java:38)
    Failed to create temporary header file.
    ....
    more snipped... 
    Can lines be commented out, or do they have to be removed?

    Mark

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Are you sure? That error looks more like you only commented out a part of a section.

  3. #3
    Ext User
    Join Date
    Jun 2007
    Posts
    18
    Vote Rating
    0
    mark.lancaster is on a distinguished road

      0  

    Default


    Hi Condor

    Thanks for replying.

    I'm commenting out a single line in the pkgDeps section, for example:
    PHP Code:
    {
            
    "name""Ext All No Core",
            
    "file""ext-all-no-core.js",
            
    "isDebug"true,
            
    "includeDeps"true,
            
    "pkgDeps": [
                
    "pkgs/ext-foundation.js",
                
    "pkgs/cmp-foundation.js",
                
    "pkgs/ext-dd.js",
                
    "pkgs/data-foundation.js",
                
    "pkgs/data-json.js",
                
    "pkgs/data-xml.js",
                
    "pkgs/data-grouping.js",
                
    "pkgs/direct.js",
                
    "pkgs/resizable.js",
                
    "pkgs/window.js",
                
    "pkgs/state.js",
                
    "pkgs/data-list-views.js",
                
    "pkgs/pkg-tabs.js",
                
    "pkgs/pkg-buttons.js",
                
    "pkgs/pkg-toolbars.js",
                
    "pkgs/pkg-history.js",
                
    "pkgs/pkg-tips.js",
                
    "pkgs/pkg-tree.js",
                
    "pkgs/pkg-charts.js",
                
    "pkgs/pkg-menu.js",
                
    "pkgs/pkg-forms.js",
                
    "pkgs/pkg-grid-foundation.js",
                
    "pkgs/pkg-grid-editor.js",
                
    /*"pkgs/pkg-grid-property.js",*/
                
    "pkgs/pkg-grid-grouping.js"
            
    ],
            
    "fileIncludes": []
        } 

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    OK, then it looks like you're correct.

    The .jsb3 format will probably support remarks, because it uses javascript to parse the file.

  5. #5
    Ext User
    Join Date
    Jun 2007
    Posts
    18
    Vote Rating
    0
    mark.lancaster is on a distinguished road

      0  

    Default


    Thanks for the info.

    As a work-around I found you can use an invalid path to achieve the same result, i.e.

    replace "pkgs/pkg-grid-property.js", with "ZZZpkgs/pkg-grid-property.js",

    Doing this successfully builds the library.

    Mark

Similar Threads

  1. Comments inside jsb file
    By zaza1851983 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 11 Jun 2010, 12:19 AM
  2. Is there a tool for generating a custom ext.jsb2 file?
    By vesper8 in forum Community Discussion
    Replies: 3
    Last Post: 10 Jun 2010, 3:10 PM
  3. ext-touch.jsb2 file?
    By mrsunshine in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 8 Jun 2010, 7:13 AM
  4. Xml version of jsb2 project file
    By maxm165 in forum Sencha Cmd
    Replies: 0
    Last Post: 30 Oct 2009, 10:18 AM
  5. Possible JSB2 error with file globbing
    By jakehurst in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 8 Jul 2009, 4:49 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar