Changeset 15885

Show
Ignore:
Timestamp:
05.06.2008 16:14:20 (11 years ago)
Author:
oranfry
Message:

made the splitter task produce less output

Location:
release-kits/shared/ant-tasks/orans
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-tasks/orans/SplitResource.java

    r15884 r15885  
    6060        //figure out how many chunks to do this in 
    6161        int noChunks = (int)(resource.length() / chunkSize) + 1; 
    62         System.out.println( "File Size: " + resource.length() ); 
    63         System.out.println( "NoChunks: " + noChunks ); 
    64         System.out.println( "chunkSize: " + chunkSize ); 
     62 
     63        System.out.println( "Splitting file into chunks" ); 
     64        System.out.println( "file: " + resource.getAbsolutePath() ); 
     65        System.out.println( "file size: " + resource.length() ); 
     66        System.out.println( "chunk size: " + chunkSize ); 
     67        System.out.println( "ergo, num chunks: " + noChunks ); 
    6568 
    6669        long written = 0; 
    67  
    6870        for ( int i=0; i<noChunks; i++  ) { 
    6971 
     
    7173            DataOutputStream os; 
    7274            File partFile = new File( outputDir, resource.getName() + "." + i ); 
    73             System.out.println( "partFile: " + partFile ); 
     75            //System.out.println( "partFile: " + partFile ); 
    7476 
    7577            try { 
     
    8385            int thisChunkSize = chunkSize; 
    8486            if ( i == noChunks - 1 ) { 
    85                 System.out.println( "(Last Chunk)"); 
     87                //System.out.println( "(Last Chunk)"); 
    8688                thisChunkSize = (int)(resource.length() % chunkSize); 
    8789            } 
    8890 
    89             System.out.println( "Read a chunk (" + thisChunkSize + " bytes)" ); 
     91            //System.out.println( "Read a chunk (" + thisChunkSize + " bytes)" ); 
    9092            byte[] data = new byte[thisChunkSize]; 
    9193            try { 
     
    9799            } 
    98100 
    99             System.out.println( "Write to the file"); 
     101            //System.out.println( "Write to the file"); 
    100102            try { 
    101103                os.write( data, 0, thisChunkSize ); 
     
    113115      } 
    114116 
    115         System.out.println( "written: " + written + " bytes" ); 
     117        //System.out.println( "Total written: " + written + " bytes" ); 
    116118 
    117119        try { 
     
    124126        //if they have specified a resource script and resource name, write an rc file 
    125127        if ( resourceScript != null && resourceName != null && resourceType != null ) { 
    126             System.out.println( "Put references into a resource script" ); 
    127             System.out.println( "resourceScript: " + resourceScript ); 
     128            System.out.println( "Putting references into a resource script" ); 
     129            System.out.println( "resourceScript: " + resourceScript.getAbsolutePath() ); 
    128130            System.out.println( "resourceName  : " + resourceName ); 
    129131            System.out.println( "resourceType  : " + resourceType );