Changeset 10868
- Timestamp:
- 2005-11-08T13:26:17+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/Create.java
r9874 r10868 7 7 { 8 8 String gsdl3_home = null; 9 String gsdl3_srchome = null; 10 String site = null; 9 11 String site_home = null; 10 12 String collection = null; 11 13 12 public Create(String gsdl3_home, String site, String collection) 14 public Create(String gsdl3_home, String gsdl3_srchome, String site, 15 String collection) 13 16 { 14 17 this.gsdl3_home = gsdl3_home; 18 this.gsdl3_srchome = gsdl3_srchome; 19 this.site = site; 15 20 this.site_home = GSFile.siteHome(gsdl3_home, site); 16 21 this.collection = collection; … … 38 43 createDirectory(new File(GSFile.collectionEtcDir(coll_home))); 39 44 40 File config_template = new File(gsdl3_ home + File.separator+ "resources"+File.separator + "xml"+File.separator+"collectionConfig.xml");45 File config_template = new File(gsdl3_srchome + File.separator+ "resources"+File.separator + "xml"+File.separator+"collectionConfig.xml"); 41 46 if (!config_template.isFile()) { 42 47 System.err.println("Couldn't find the config file template "+config_template.getPath()); … … 48 53 49 54 System.err.println("New collection created in "+coll_home); 50 System.err.println("Put source documents into import, set the collection's configuration in etc/collectionConfig.xml, then run gs3-build.sh (linux) or gs3-build (windows)to build the collection");55 System.err.println("Put source documents into import, set the collection's configuration in etc/collectionConfig.xml, then run \"gs3-build.(sh|bat) "+ this.site+" "+this.collection+"\" to build the collection"); 51 56 } 52 57 … … 62 67 { 63 68 String gsdl3_home = System.getProperty("GSDL3HOME"); 69 String gsdl3_srchome = System.getProperty("GSDL3SRCHOME"); 64 70 if (gsdl3_home == null) { 65 71 System.out.println("Error: Unable to locate GSDL3HOME"); 72 System.exit(1); 73 } 74 if (gsdl3_srchome == null) { 75 System.out.println("Error: Unable to locate GSDL3SRCHOME"); 66 76 System.exit(1); 67 77 } … … 100 110 } 101 111 102 Create c = new Create(gsdl3_home, site, collection);112 Create c = new Create(gsdl3_home, gsdl3_srchome, site, collection); 103 113 c.makeCollection(); 104 114 return;
Note:
See TracChangeset
for help on using the changeset viewer.