Ticket #3597: 3597_ckpackager.patch

File 3597_ckpackager.patch, 2.0 KB (added by Wiktor Walc, 15 years ago)
  • _source/includes/ckpackager.js

     
    1111
    1212        getPackPath : function( relativePath )
    1313        {
    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
    1521                return file.getAbsolutePath();
    1622        },
    1723
  • _source/includes/packagefile.js

     
    4747
    4848                print( 'Packaging file ' + CKPACKAGER.tools.getFileName( this.output ) + '\n' );
    4949
     50                if ( CKPACKAGER.verbose )
     51                        var packPath = CKPACKAGER.getPackPath();
     52               
    5053                for ( var i = 0 ; i < this.files.length ; i++ )
    5154                {
    5255                        var file = this.files[ i ];
    5356
    5457                        if ( CKPACKAGER.verbose )
    55                                 print( '    Adding ' + CKPACKAGER.tools.getFileName( file ) );
     58                                print( '    Adding ' + file.replace( packPath, '' ) );
    5659
    5760                        source.push( CKPACKAGER.tools.readFile( file ), '\n' );
    5861                }
     
    8083                        throw e;
    8184                }
    8285
    83                 print( '' );
     86                print( '\n' );
    8487                print( '    Number of files processed: ' + this.files.length );
    8588                print( '    Original size............: ' + source.length + ' bytes' );
    8689                print( '    Output file size.........: ' + compressed.length + ' bytes ('
  • _source/includes/scriptcompressor.js

     
    12311231
    12321232                        if ( !noCheck )
    12331233                        {
    1234                                 print( '' );
    1235                                 print( '    Checking compressed code...' );
     1234                                System.out.print( '\r    Checking compressed code...' );
    12361235                                parser.parse( compressed/*.replace( /;/g, ';\n' )*/, null, 1 );
    12371236                        }
    12381237
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy