Changeset 25539 for main/trunk
- Timestamp:
- 2012-05-08T09:51:17+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java
r24883 r25539 24 24 public class GS2PerlConstructor extends CollectionConstructor 25 25 { 26 27 26 public static final int NEW = 0; 28 27 public static final int IMPORT = 1; … … 120 119 break; 121 120 } 122 123 121 } 124 122 … … 147 145 { 148 146 sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection construction: import collection.")); 149 Vector command = new Vector(); 150 command.add("import.pl"); 147 Vector<String> command = new Vector<String>(); 148 command.add(GlobalProperties.getProperty("perl.path", "perl")); 149 command.add("-S"); 150 command.add(GlobalProperties.getGS2Build() + File.separator + "bin" + File.separator + "script" + File.separator + "import.pl"); 151 if (this.manifest_file != null) 152 { 153 command.add("-keepold"); 154 command.add("-manifest"); 155 command.add(this.manifest_file); 156 } 157 command.add("-site"); 158 command.add(this.site_name); 151 159 command.add("-collectdir"); 152 160 command.add(GSFile.collectDir(this.site_home)); … … 166 174 { 167 175 sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection construction: build collection.")); 168 Vector command = new Vector();176 Vector<String> command = new Vector<String>(); 169 177 command.add(GlobalProperties.getProperty("perl.path", "perl")); 170 178 command.add("-S");
Note:
See TracChangeset
for help on using the changeset viewer.