Ignore:
Timestamp:
2015-09-03T20:59:30+12:00 (9 years ago)
Author:
ak19
Message:

Fixes to do with networked Derby: port and host number changes propagated from build.props to global.props are now at last picked up by DerbyWrapper.java by build.xml setting a system property (-Dgsdl3.writablehome), which is then used to force load Global.Properties if it's not loaded yet. It won't be loaded when launching the ant update-userdb cmd which runs ModifyUsersDB.java. Or if running ModifyUsersDB.java, txt2usersDB.java or usersDB2txt from the cmdline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/usersDB2txt.java

    r27135 r30196  
    2929import java.util.Properties;
    3030
    31 // Run as java org.greenstone.gsdl3.util.usersDB2txt <usersDB file>
     31/**
     32    To run this from the command-line, first make sure that the networked derby server is running (ant start-derby)
     33    then run:
     34 
     35    java -Dgsdl3.writablehome=/full/path/to/GS3/web -cp ./web/WEB-INF/lib/gsdl3.jar:./web/WEB-INF/lib/gutil.jar:./web/WEB-INF/lib/derby.jar:./web/WEB-INF/lib/derbyclient.jar:./web/WEB-INF/lib/log4j-1.2.8.jar:./web/WEB-INF/classes org.greenstone.gsdl3.util.usersDB2txt web/etc/usersDB/
     36
     37    if redirecting to a file append ">& filename.txt" to the above command
     38    since the usersDB2txt program output goes to System.err and needs to be redirected to the file too
     39
     40    Don't forget to stop the networked derby server again at the end, if you had started it: ant stop-derby
     41
     42    Or if using embedded derby, ensure that tomcat is stopped, then run:
     43    java -cp /full/path/to/GS3/web/WEB-INF/lib/gsdl3.jar:/full/path/to/GS3/web/WEB-INF/lib/derby.jar org.greenstone.gsdl3.util.usersDB2txt web/etc/usersDB/ [>& <output file>]
     44*/
    3245public class usersDB2txt
    3346{
Note: See TracChangeset for help on using the changeset viewer.