PDA

View Full Version : ExtJS SVN source control ext-3.0-rc2 build error



emredagli
11 Jun 2009, 4:29 AM
Hii,
After update my svn directory,
I try to build ext-3.0-rc2 by the following command in XP,


java -jar builder.jar -s "c:\ExtJSSVN\tags\ext-3.0-rc2" -o "c:\ExtJS30Last"

The output is:


Processing Component: \ext-core.js
- Processing File: core\core\Ext.js
- Processing File: util\core\TaskMgr.js
- Processing File: adapter\core\ext-base-begin.js
js: "C:\ExtJSSVN\tags\ext-3.0-rc2\src\adapter\core\ext-base-begin.js", line 12:
missing } after function body
js:
js: ...^
js: "C:\ExtJSSVN\tags\ext-3.0-rc2\src\adapter\core\ext-base-begin.js", line 1: C
ompilation produced 1 syntax errors.


What should I do?

Thanks.

Animal
11 Jun 2009, 4:34 AM
Post a bug report ASAP. I just looked at that file. It's broken!

Another case of the developer being hit by a meteor halfway through developing something!

Animal
11 Jun 2009, 4:36 AM
Meanwhile, you can fix the file...



(function(){
var libFlyweight;

function fly(el) {
if (!libFlyweight) {
libFlyweight = new Ext.Element.Flyweight();
}
libFlyweight.dom = el;
return libFlyweight;
}
})();


So now that will compile even though it actually does nothing!

I've no idea what the purpose of that file is.

evant
11 Jun 2009, 4:36 AM
You need to use the -d option on the SVN builder. The -begin and -end files are "incorrect" on their own.

Animal
11 Jun 2009, 4:38 AM
Ah.

Something the GUI builder hides.

You learn something every day on these boards!

emredagli
11 Jun 2009, 4:44 AM
Thanks all,


java -jar builder.jar -d -s "c:\ExtJSSVN\tags\ext-3.0-rc2" -o "c:\ExtJS30Last"

this works.