Changeset 14336 for greenstone3
- Timestamp:
- 2007-08-08T09:23:53+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/util/txt2usersDB.java
r14334 r14336 19 19 DerbyWrapper dw=new DerbyWrapper(); 20 20 dw.connectDatabase(args[1],false); 21 boolean delete_rows = dw.deleteAllUser(); 22 if (!delete_rows){ 23 System.out.println("Couldn't delete rows of the users table"); 24 System.exit(0); 25 } 21 26 String username=null; 22 27 String password=null; … … 46 51 if (str.equals("----------------------------------------------------------------------")){ 47 52 if ((username!=null) && (password!=null) && (groups!=null) && (accountstatus!=null) && (comment!=null)){ 53 dw.connectDatabase(args[1],false); 48 54 dw.addUser(username, password, groups, accountstatus, comment); 49 55 username=null;
Note:
See TracChangeset
for help on using the changeset viewer.