PDA

View Full Version : [CLOSED] can not reproduce ext-all-*.js



csky
29 May 2010, 6:05 AM
Ext version tested:

Ext 3.2.1


Adapter used:

N/A


css used:

N/A


Browser versions tested against:

N/A


Operating System:

Linux


Description:

The ext-all*.js files generated with ext.jsb2 and JSBuilder2 do not match those distributed in ext-3.2.1.zip.
After patching a bug in ExtJS, I would like to be able to generate comparable files for deployment.


Test Case:

Steps to reproduce the problem:

Download and unzip ext-3.2.1.zip
Run JSBuilder2. $ java -jar JSBuilder2.jar --projectFile ./ext.jsb2 --homeDir .


The result that was expected:

The files generated by ext.jsb2 and JSBuilder2 match those distributed by ExtJS.


The result that occurs instead:

ext-all.js: license is duplicated before every package. each package appears on a separate line. (see below)
ext-all-debug.js: license is duplicated before every package. source code comments remain. this is really ext-all-debug-w-comments.js
ext-all-debug-w-comments.js: this file is not generated.




/* /*
* Ext JS Library 3.2.1 * Ext JS Library 3.2.1
* Copyright(c) 2006-2010 Ext JS, Inc. * Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com * licensing@extjs.com
* http://www.extjs.com/license * http://www.extjs.com/license
*/ */
> /*
> * Ext JS Library 3.2.1
> * Copyright(c) 2006-2010 Ext JS, Inc.
> * licensing@extjs.com
> * http://www.extjs.com/license
> */
Ext.DomHelper=function(){var w=null,k=/^(?:br|frame|hr|img|in | Ext.DomHelper=function(){var w=null,d=/^(?:br|frame|hr|img|in
> /*
> * Ext JS Library 3.2.1
> * Copyright(c) 2006-2010 Ext JS, Inc.
> * licensing@extjs.com
> * http://www.extjs.com/license
> */
> Ext.apply(Ext.DomHelper,function(){var e,b="afterbegin",h="af
> /*
> * Ext JS Library 3.2.1
> * Copyright(c) 2006-2010 Ext JS, Inc.
> * licensing@extjs.com
> * http://www.extjs.com/license
> */
> Ext.Template=function(h){var j=this,c=arguments,e=[],d;if(Ext
> /*
> * Ext JS Library 3.2.1
> * Copyright(c) 2006-2010 Ext JS, Inc.
> * licensing@extjs.com
> * http://www.extjs.com/license
> */
> Ext.apply(Ext.Template.prototype,{disableFormats:false,re:/\{

Debugging already done:

none


Possible fix:

not provided

Jamie Avins
1 Jun 2010, 9:19 AM
The debug without comments file is a python script we use to strip out comments and we don't include this currently. I'm not sure why you are having issues with ext-all.js, I typically build to a separate directory but other than that it's the same. We have seen issues with JSBuilder related to not using Sun's java, which java are you using?

evant
1 Jun 2010, 4:59 PM
I believe there was an issue with 3.2.1, where some of the source files erronously had the "header" text included, which is why they show up in the source. It was just a problem with the deployment, there's nothing wrong with the builder.

3.3, using the default builder doesn't include these comments.

Kevin Krouse
30 Jun 2010, 12:26 PM
The debug without comments file is a python script we use to strip out comments and we don't include this currently.

Can you please provide the python script used in your build process? We would like to patch ext-3.2.1 with a backported bug fix from the 3.2.2 release and have the generated source match the distributed source as closely as possible.

There are quite a few threads on stripping comments from the "-debug.js" source files:
http://www.sencha.com/forum/showthread.php?90810-How-to-remove-comments
http://www.sencha.com/forum/showthread.php?73650-Stripping-comments-and-whitespace-from-javascript

Also, please update the out of date build instructions:
http://www.sencha.com/learn/Tutorial:Building_Ext_From_Source