Changeset 33975
- Timestamp:
- 2020-02-25T14:46:51+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r33935 r33975 24 24 <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/> 25 25 <taskdef name="for" classname="net.sf.antcontrib.logic.ForTask" classpathref="project.classpath"/> 26 <taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" classpathref="project.classpath"/> 26 27 <taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" classpathref="project.classpath"/> 27 28 … … 318 319 <!-- now we've read in properties, apply defaults --> 319 320 <property name="disable.collection.building" value="false"/> 320 321 <property name="oai.servlets" value="oaiserver"/> <!-- in case user has old version of build.properties--> 321 322 <!-- get properties from the environment --> 322 323 <property environment="env"/> … … 1192 1193 1193 1194 <!--Now write out the url with /oaiserver suffix as the baseURL property in OAIConfig.xml--> 1194 <available file="${basedir}/resources/oai/OAIConfig.xml.in" property="oaiconfig.present"/> 1195 <antcall target="init-oaiconfig"> 1195 <antcall target="init-oaiconfigs"> 1196 1196 <param name="url" value="${url}"/> 1197 1197 </antcall> … … 1204 1204 1205 1205 </target> 1206 1207 <target name="init-oaiconfig" if="oaiconfig.present"> 1208 <echo>Writing out baseURL ${url}oaiserver to ${web.writableclasses}/OAIConfig.xml</echo> 1209 <copy file="${basedir}/resources/oai/OAIConfig.xml.in" tofile="${web.writableclasses}/OAIConfig.xml"/> 1210 <rsr verbosity="1" file="${web.writableclasses}/OAIConfig.xml" pattern="<baseURL>.*</baseURL>" replacement="<baseURL>${url}oaiserver</baseURL>" /> 1206 1207 <available file="${basedir}/resources/oai/OAIConfig.xml.in" property="oaiconfig.present"/> 1208 1209 <target name="init-oaiconfigs" if="oaiconfig.present"> 1210 <echo>Generating new oaiconfigs for servlets ${oai.servlets} </echo> 1211 <foreach list="${oai.servlets}" delimiter="," target="init-oaiconfig" param="servlet_name"/> 1212 </target> 1213 1214 <target name="init-oaiconfig"> 1215 <if><bool><not><available file="${basedir}/resources/oai/OAIConfig-${servlet_name}.xml.in"/></not></bool> 1216 <echo>Copying file ${basedir}/resources/oai/OAIConfig.xml.in to ${basedir}/resources/oai/OAIConfig-${servlet_name}.xml.in</echo> 1217 <echo>This file (OAIConfig-${servlet_name}.xml.in) will not be regenerated again, so you may edit it to customise settings for this servlet. To have it regenerated, delete the file.</echo> 1218 <copy file="${basedir}/resources/oai/OAIConfig.xml.in" tofile="${basedir}/resources/oai/OAIConfig-${servlet_name}.xml.in"/> 1219 </if> 1220 <echo>Copying ${basedir}/resources/oai/OAIConfig-${servlet_name}.xml.in to ${web.writableclasses}/OAIConfig-${servlet_name}.xml and setting baseURL to ${url}${servlet_name}</echo> 1221 <copy file="${basedir}/resources/oai/OAIConfig-${servlet_name}.xml.in" tofile="${web.writableclasses}/OAIConfig-${servlet_name}.xml"/> 1222 <rsr verbosity="1" file="${web.writableclasses}/OAIConfig-${servlet_name}.xml" pattern="<baseURL>.*</baseURL>" replacement="<baseURL>${url}${servlet_name}</baseURL>" /> 1211 1223 </target> 1212 1224 … … 2645 2657 Doing "cat </dev/null > packages/tomcat/logs/catalina.out" doesn't work as an ant target. 2646 2658 It seems to have a problem with cat or </dev/null, with or without the < sign. --> 2647 <target name="reset-logs" description="Empties catalina.out, greenstone.log and contents of web/logs/tmp">2659 <target name="reset-logs" description="Empties catalina.out, solr.log, greenstone.log, usage.log, server.log and contents of web/logs/tmp"> 2648 2660 <echo>Truncating catalina.out, solr.log, greenstone.log, usage.log and server.log, and emptying ${web.writablehome}/logs/tmp</echo> 2649 2661 <exec executable="rm" os="${os.unix}" dir="${catalina.home}/logs" spawn="false">
Note:
See TracChangeset
for help on using the changeset viewer.