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/build.xml

    r30170 r30196  
    18551855      <handler classname="org.apache.tools.ant.input.SecureInputHandler" /> <!-- password won't be visible on screen -->
    18561856    </input>
    1857     <input addproperty="user.groups" defaultvalue="" message="Groups (comma-separated list):&gt;"/>
     1857    <input addproperty="user.groups" defaultvalue="" message="Groups (comma-separated list, e.g. personal-collections-editor):&gt;"/>
    18581858    <input addproperty="user.status" defaultvalue="true" message="Enabled (true/false):&gt;"/>
    18591859    <input addproperty="user.comment" defaultvalue="" message="Comment:&gt;"/>
     
    18891889    <java classname="org.greenstone.gsdl3.util.ModifyUsersDB">
    18901890      <classpath refid="compile.classpath"/> <!--for ${web.lib}/gsdl3.jar and supporting files-->
     1891      <sysproperty key="gsdl3.writablehome" value="${gsdl3.writablehome}" /> <!-- passes -D<syspropKey=syspropVal> to java class ModifyUsersDB. Available in java code as System.getProperty("syspropKey") -->
    18911892      <arg file="${web.home}/etc/usersDB"/>
    18921893      <arg value="${user.username}"/>
Note: See TracChangeset for help on using the changeset viewer.