Ticket #3597: 3597_ckpackager.patch
File 3597_ckpackager.patch, 2.0 KB (added by , 15 years ago) |
---|
-
_source/includes/ckpackager.js
11 11 12 12 getPackPath : function( relativePath ) 13 13 { 14 var file = new File( CKPACKAGER.packDir, relativePath ); 14 var file; 15 16 if ( relativePath ) 17 file = new File( CKPACKAGER.packDir, relativePath ); 18 else 19 file = new File( CKPACKAGER.packDir ); 20 15 21 return file.getAbsolutePath(); 16 22 }, 17 23 -
_source/includes/packagefile.js
47 47 48 48 print( 'Packaging file ' + CKPACKAGER.tools.getFileName( this.output ) + '\n' ); 49 49 50 if ( CKPACKAGER.verbose ) 51 var packPath = CKPACKAGER.getPackPath(); 52 50 53 for ( var i = 0 ; i < this.files.length ; i++ ) 51 54 { 52 55 var file = this.files[ i ]; 53 56 54 57 if ( CKPACKAGER.verbose ) 55 print( ' Adding ' + CKPACKAGER.tools.getFileName( file) );58 print( ' Adding ' + file.replace( packPath, '' ) ); 56 59 57 60 source.push( CKPACKAGER.tools.readFile( file ), '\n' ); 58 61 } … … 80 83 throw e; 81 84 } 82 85 83 print( ' ' );86 print( '\n' ); 84 87 print( ' Number of files processed: ' + this.files.length ); 85 88 print( ' Original size............: ' + source.length + ' bytes' ); 86 89 print( ' Output file size.........: ' + compressed.length + ' bytes (' -
_source/includes/scriptcompressor.js
1231 1231 1232 1232 if ( !noCheck ) 1233 1233 { 1234 print( '' ); 1235 print( ' Checking compressed code...' ); 1234 System.out.print( '\r Checking compressed code...' ); 1236 1235 parser.parse( compressed/*.replace( /;/g, ';\n' )*/, null, 1 ); 1237 1236 } 1238 1237