Hybrid View
-
30 Dec 2010 3:38 AM #1
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:
Can lines be commented out, or do they have to be removed?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...
Mark
-
30 Dec 2010 3:46 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
Are you sure? That error looks more like you only commented out a part of a section.
-
30 Dec 2010 4:10 AM #3
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": []
}
-
30 Dec 2010 4:13 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
OK, then it looks like you're correct.
The .jsb3 format will probably support remarks, because it uses javascript to parse the file.
-
30 Dec 2010 4:23 AM #5
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
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Comments inside jsb file
By zaza1851983 in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 11 Jun 2010, 12:19 AM -
Is there a tool for generating a custom ext.jsb2 file?
By vesper8 in forum Community DiscussionReplies: 3Last Post: 10 Jun 2010, 3:10 PM -
ext-touch.jsb2 file?
By mrsunshine in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 8 Jun 2010, 7:13 AM -
Xml version of jsb2 project file
By maxm165 in forum Sencha CmdReplies: 0Last Post: 30 Oct 2009, 10:18 AM -
Possible JSB2 error with file globbing
By jakehurst in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 8 Jul 2009, 4:49 AM


Reply With Quote