- Timestamp:
- 2008-05-29T11:27:24+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java
r15164 r15775 152 152 { 153 153 String result = performAction(new RemoteGreenstoneServerExistsAction(collection_name, collection_file)); 154 if(result. contains("exists")) {154 if(result.indexOf("exists") != -1) { 155 155 return true; 156 156 } 157 else if(result. contains("does not exist")) {157 else if(result.indexOf("does not exist") != -1) { 158 158 return false; 159 159 } … … 1062 1062 else if (command_output.startsWith("ERROR: ")) { 1063 1063 throw new Exception(command_output.substring("ERROR: ".length())); 1064 } else if (command_output. contains("ERROR: ")) { // check if ERROR occurs anywhere else in the output1064 } else if (command_output.indexOf("ERROR: ") != -1) { // check if ERROR occurs anywhere else in the output 1065 1065 throw new Exception(command_output); 1066 1066 }
Note:
See TracChangeset
for help on using the changeset viewer.