- Timestamp:
- 2014-03-20T11:00:27+13:00 (10 years ago)
- Location:
- main/trunk/greenstone3
- Files:
-
- 1 added
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r28908 r28937 955 955 </if> 956 956 <copy file="${basedir}/resources/cgi/gsdl3site.cfg.in" tofile="${basedir}/resources/cgi/gsdl3site.cfg" overwrite="true"/> 957 <if><bool><available file="${basedir}/resources/ java/global.properties"/></bool>958 <copy file="${basedir}/resources/ java/global.properties" tofile="${basedir}/resources/java/global.properties.backup" overwrite="true"/>959 </if> 960 <copy file="${basedir}/resources/ java/global.properties.in" tofile="${basedir}/resources/java/global.properties" overwrite="true"/>961 <if><bool><available file="${basedir}/resources/ java/log4j.properties"/></bool>962 <copy file="${basedir}/resources/ java/log4j.properties" tofile="${basedir}/resources/java/log4j.properties.backup" overwrite="true"/>963 </if> 964 <copy file="${basedir}/resources/ java/log4j.properties.in" tofile="${basedir}/resources/java/log4j.properties" overwrite="true"/>957 <if><bool><available file="${basedir}/resources/web/global.properties"/></bool> 958 <copy file="${basedir}/resources/web/global.properties" tofile="${basedir}/resources/web/global.properties.backup" overwrite="true"/> 959 </if> 960 <copy file="${basedir}/resources/web/global.properties.in" tofile="${basedir}/resources/web/global.properties" overwrite="true"/> 961 <if><bool><available file="${basedir}/resources/web/log4j.properties"/></bool> 962 <copy file="${basedir}/resources/web/log4j.properties" tofile="${basedir}/resources/web/log4j.properties.backup" overwrite="true"/> 963 </if> 964 <copy file="${basedir}/resources/web/log4j.properties.in" tofile="${basedir}/resources/web/log4j.properties" overwrite="true"/> 965 965 </target> 966 966 <!-- ========== Web app Targets ================================ --> … … 1192 1192 <filter token="disable.collection.building" value="${disable.collection.building}"/> 1193 1193 <copy file="${basedir}/resources/cgi/gsdl3site.cfg" tofile="${web.writablehome}/WEB-INF/cgi/gsdl3site.cfg" filtering="true" overwrite="true"/> 1194 <copy file="${basedir}/resources/ java/global.properties" tofile="${web.writableclasses}/global.properties" filtering="true" overwrite="true"/>1195 <copy file="${basedir}/resources/ java/log4j.properties" tofile="${web.writableclasses}/log4j.properties" filtering="true" overwrite="true"/>1194 <copy file="${basedir}/resources/web/global.properties" tofile="${web.writableclasses}/global.properties" filtering="true" overwrite="true"/> 1195 <copy file="${basedir}/resources/web/log4j.properties" tofile="${web.writableclasses}/log4j.properties" filtering="true" overwrite="true"/> 1196 1196 <if><bool><istrue value="${gsdl3home.isreadonly}"/></bool> 1197 1197 <!-- uncomment the writablehome properties --> -
main/trunk/greenstone3/src/java/org/greenstone/server/Server3.java
r27836 r28937 100 100 File propsFile = new File(propsFolder+"log4j.properties"); 101 101 102 // create it from the template file GS3/resources/ java/log4j.properties.in102 // create it from the template file GS3/resources/web/log4j.properties 103 103 // Always do this => helps make Greenstone3 portable 104 104 … … 109 109 110 110 // load the template log4j.properties.in file into logProps 111 FileInputStream infile = new FileInputStream(new File(gsdl_home+File.separator+"resources"+File.separator+" java"+File.separator+"log4j.properties.in"));111 FileInputStream infile = new FileInputStream(new File(gsdl_home+File.separator+"resources"+File.separator+"web"+File.separator+"log4j.properties")); 112 112 if(infile != null) { 113 113 Properties logProps = new Properties();
Note:
See TracChangeset
for help on using the changeset viewer.