Changeset 25449
- Timestamp:
- 2012-04-20T17:30:14+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r25446 r25449 1187 1187 </target> 1188 1188 1189 <!-- http://blog.andrewbeacock.com/2007/11/how-to-truncate-log-file-using-ubuntu.html 1190 Doing "cat </dev/null > packages/tomcat/logs/catalina.out" doesn't work as an ant target. 1191 It seems to have a problem with cat or </dev/null, with or without the < sign. --> 1192 <target name="clean-logs" description="Empties catalina.out, greenstone.log and contents of web/logs/tmp"> 1193 <echo>Truncating catalina.out and greenstone.log, and emptying ${web.home}/logs/tmp</echo> 1194 <exec executable="truncate" os="${os.unix}" dir="${catalina.home}/logs" spawn="false"> 1195 <arg value="-s0"/> 1196 <arg value="catalina.out"/> 1197 </exec> 1198 <exec executable="truncate" os="${os.unix}" dir="${web.home}/logs" spawn="false"> 1199 <arg value="-s0"/> 1200 <arg value="greenstone.log"/> 1201 </exec> 1202 1203 <exec executable="cmd" os="${os.windows}" dir="${catalina.home}/logs" spawn="false"> 1204 <arg line="/c echo. > catalina.out"/> 1205 </exec> 1206 <exec executable="cmd" os="${os.windows}" dir="${web.home}/logs" spawn="false"> 1207 <arg line="/c echo. > greenstone.log"/> 1208 </exec> 1209 1210 <delete> 1211 <fileset dir="${web.home}/logs/tmp" includes="**/*"/> 1212 </delete> 1213 </target> 1189 1214 1190 1215 <!-- ======================= ant Targets ============================ -->
Note:
See TracChangeset
for help on using the changeset viewer.