Ignore:
Timestamp:
2004-10-12T12:19:22+13:00 (20 years ago)
Author:
kjdon
Message:

some mods, not sure what they are. will tidy them up soon, but didn't want to leave the package uncompilable so committing this now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenstone3-extensions/vishnu/src/vishnu/builder/MGWrapper.java

    r8189 r8290  
    6464    {
    6565
    66     if( inputDir == null || outputDir == null ){
    67         usage();
    68         System.exit(0);
    69     }
    70 
    71 
    72     /* check if index dir exists */
    73     File in = new File(inputDir);
    74     if (!in.isDirectory()) {
    75         System.err.println("input directory ("+inputDir+") not a directory, exiting...");
    76         System.exit(0);
    77     }
    78    
    79     /**** check if output directory exist, if not create it ****/
    80 
    81     File f = new File(outputDir);
    82         if( !f.exists() ){
    83         try {
    84         f.mkdirs();
    85         } catch (Exception e) {
    86         System.err.println("Couldn't create output directory "+outputDir);
    87         System.err.println(e);
    88         System.exit(0);
    89         }
    90     }
    91 
     66    initialize();
    9267    // new mg requires a .mg_getrc to work
    9368    // lets put it in the output dir
    94     File rc_file = new File(f, ".mg_getrc");
     69    File rc_file = new File(outputDir, ".mg_getrc");
    9570    if (!rc_file.exists()) {
    9671        // if its there, assume it is correct
Note: See TracChangeset for help on using the changeset viewer.