Changeset 6866
- Timestamp:
- 2004-02-24T11:02:30+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/Build.java
r5943 r6866 8 8 BuildManager manager; 9 9 10 public Build(List inputRoots, String collection, String outputDir)11 { this.manager = new BuildManager(inputRoots, collection, outputDir);10 public Build(List inputRoots, String site, String collection, String outputDir) 11 { this.manager = new BuildManager(inputRoots, site, collection, outputDir); 12 12 } 13 13 … … 20 20 List inputDirs = new ArrayList(); 21 21 String collection = null; 22 String site = null; 22 23 String outputDir = null; 23 24 … … 40 41 } 41 42 } 43 else if (args[a].equals("-site")) { 44 if (a < args.length - 1 && 45 args[a+1].charAt(0) != '-') 46 { 47 site = args[a+1]; 48 a ++; 49 } 50 } 42 51 else if (args[a].equals("-outputDir")) { 43 52 if (a < args.length - 1 && … … 50 59 } 51 60 52 if ( collection == null && inputDirs.size() == 0)53 { System.err.println("At least one input directory must be given, or a collectionname");54 61 if (site==null) { 62 System.err.println("you must specify the site name"); 63 System.exit(0); 55 64 } 56 57 Build build = new Build(inputDirs, collection, outputDir); 65 if (collection == null && inputDirs.size() == 0) { 66 System.err.println("At least one input directory must be given, or a collection name"); 67 System.exit(0); 68 } 69 70 Build build = new Build(inputDirs, site, collection, outputDir); 58 71 build.run(); 59 72
Note:
See TracChangeset
for help on using the changeset viewer.