- Timestamp:
- 2004-10-12T12:19:22+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/greenstone3-extensions/vishnu/src/vishnu/builder/MGWrapper.java
r8189 r8290 64 64 { 65 65 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(); 92 67 // new mg requires a .mg_getrc to work 93 68 // 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"); 95 70 if (!rc_file.exists()) { 96 71 // if its there, assume it is correct
Note:
See TracChangeset
for help on using the changeset viewer.