Changeset 25635 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java
- Timestamp:
- 2012-05-22T13:01:04+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/build/GS2PerlConstructor.java
r25609 r25635 124 124 { 125 125 sendMessage(new ConstructionEvent(this, GSStatus.INFO, "Collection construction: new collection.")); 126 Vector command = new Vector();126 Vector<String> command = new Vector<String>(); 127 127 command.add("gs2_mkcol.pl"); 128 128 command.add("-site"); … … 133 133 command.add(this.collection_name); 134 134 String[] command_str = {}; 135 command_str = (String[])command.toArray(command_str);135 command_str = command.toArray(command_str); 136 136 if (runPerlCommand(command_str)) 137 137 { … … 162 162 command.add(this.collection_name); 163 163 String[] command_str = {}; 164 command_str = (String[])command.toArray(command_str);164 command_str = command.toArray(command_str); 165 165 166 166 if (runPerlCommand(command_str)) … … 186 186 187 187 String[] command_str = {}; 188 command_str = (String[])command.toArray(command_str);188 command_str = command.toArray(command_str); 189 189 190 190 if (runPerlCommand(command_str)) … … 231 231 232 232 /** extracts all the args from the xml and returns them in a Vector */ 233 protected Vector extractParameters(Element param_list)234 { 235 236 Vector args = new Vector();233 protected Vector<String> extractParameters(Element param_list) 234 { 235 236 Vector<String> args = new Vector<String>(); 237 237 if (param_list == null) 238 238 {
Note:
See TracChangeset
for help on using the changeset viewer.