Changeset 10869
- Timestamp:
- 2005-11-08T13:27:35+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/CollectionManager.java
r9874 r10869 183 183 */ 184 184 if (this.database == null) { 185 this.database = GS3SQLConnectionFactory.getGS3SQLConnection("test"); 186 boolean success = this.database.initCollection(this.qualifiedCollectionName); 187 if (!success) { 188 System.err.println("couldn't init collection " + this.qualifiedCollectionName); 189 System.exit(1); 190 } 185 this.database = GS3SQLConnectionFactory.getGS3SQLConnection("test"); 186 if (this.database == null) { 187 System.err.println("Can't connect to the mysql database. Please make sure your mysql is running, and that the correct passwords (if any) are specified in "+gsdl3Root+"/WEB-INF/classes/global.properties"); 188 System.exit(1); 189 } 190 boolean success = this.database.initCollection(this.qualifiedCollectionName); 191 if (!success) { 192 System.err.println("couldn't init collection " + this.qualifiedCollectionName); 193 System.exit(1); 194 } 191 195 } 192 196
Note:
See TracChangeset
for help on using the changeset viewer.