Changeset 23194

Show
Ignore:
Timestamp:
21.10.2010 10:26:33 (9 years ago)
Author:
davidb
Message:

Diagnostic output should go to standard-error, as standard-out used in Greenstone to stream data around

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/lucene-gs/src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java

    r21962 r23194  
    101101        } 
    102102        else { 
    103             System.out.println("Unrecognised option: " + args[i]); 
     103            System.err.println("Unrecognised option: " + args[i]); 
    104104        } 
    105105        } 
     
    111111 
    112112    if (filtered_args.size() != 3) { 
    113         System.out.println("Usage: java GS2LuceneIndexer [-removeold|-verbosity [num]] doc-tag-level building_dir index"); 
     113        System.err.println("Usage: java GS2LuceneIndexer [-removeold|-verbosity [num]] doc-tag-level building_dir index"); 
    114114        return; 
    115115    } 
     
    125125 
    126126    if (!import_dir.exists()) { 
    127         System.out.println("Couldn't find import directory: "+import_dirname); 
     127        System.err.println("Couldn't find import directory: "+import_dirname); 
    128128        return; 
    129129    } 
     
    285285    protected void print(String s)  
    286286    {  
    287         System.out.print(s);  
     287        System.err.print(s);  
    288288    } 
    289289 
    290290    protected void println(String s)  
    291291    {  
    292         System.out.println(s);  
     292        System.err.println(s);  
    293293    } 
    294294