1 var JSBuilderPath = system.script.replace(/bin(\/|\\)JSBuilder\.js/, '');
3 load(JSBuilderPath + 'src/Loader.js');
4 Loader.setBasePath(JSBuilderPath + 'src');
7 'Ext', 'Cmd', 'Filesystem', 'Platform', 'Cli', 'Logger', 'Project', 'Target', 'Package', 'Build'
13 JSBuilder = Ext.extend(Cli, {
21 desc: 'Location of a jsb2 project file'
26 desc: 'The directory to build the project to'
30 desc: 'Output detailed information about what is being built'
34 desc: 'Suffix to append to JS debug targets, defaults to \'debug\''
38 desc: 'Dont compress the targets'
46 'JSBuilder.bat -p C:\\Apps\\www\\ext3svn\\ext.jsb2 -d C:\\Apps\\www\\deploy\\',
49 'JSBuilder.sh -p /home/tommy/www/trunk/ext.jsb2 -d /home/tommy/www/deploy/',
51 'JSBuilder3 is a Sencha Project build tool.',
52 'For additional information, see http://www.sencha.com/products/jsbuilder/'
56 if (JSBuilder.superclass.run.call(this) === false) {
60 // true to only set if it is not defined
61 this.set('debugSuffix', '-debug', true);
63 this.project = new Project(this.get('projectFile'), this);
65 if (this.get('sourceFiles')) {
66 this.project.getSourceFiles();
67 } else if (this.get('specFiles')) {
68 this.project.getSpecFiles();
70 this.log('\nLoading the ' + this.project.get('name') + ' Project');
71 this.log('Loaded ' + this.project.get('packages').length + ' Packages');
72 this.log('Loaded ' + this.project.get('builds').length + ' Builds');