Changeset 26185

Show
Ignore:
Timestamp:
13.09.2012 10:48:56 (8 years ago)
Author:
ak19
Message:

The ant clean-logs target did not work on nzdl's G's GS3 showcase because it didn't recognise the truncate command. Kathy suggested rm and then a touch instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r26115 r26185  
    12221222    It seems to have a problem with cat or </dev/null, with or without the < sign. --> 
    12231223  <target name="clean-logs" description="Empties catalina.out, greenstone.log and contents of web/logs/tmp"> 
    1224     <echo>Truncating catalina.out, greenstone.log and server.log, and emptying ${web.home}/logs/tmp</echo> 
    1225     <exec executable="truncate" os="${os.unix}" dir="${catalina.home}/logs" spawn="false"> 
    1226       <arg value="-s0"/> 
     1224    <echo>Truncating catalina.out, greenstone.log and server.log, and emptying ${web.home}/logs/tmp</echo>     
     1225    <exec executable="rm" os="${os.unix}" dir="${catalina.home}/logs" spawn="false"> 
     1226      <arg value="-f"/> 
    12271227      <arg value="catalina.out"/> 
    12281228    </exec> 
    1229     <exec executable="truncate" os="${os.unix}" dir="${web.home}/logs" spawn="false"> 
    1230       <arg value="-s0"/> 
     1229    <exec executable="rm" os="${os.unix}" dir="${web.home}/logs" spawn="false"> 
     1230      <arg value="-f"/> 
    12311231      <arg value="greenstone.log"/> 
    12321232    </exec> 
    1233     <exec executable="truncate" os="${os.unix}" dir="${web.home}/logs" spawn="false"> 
    1234       <arg value="-s0"/> 
     1233    <exec executable="rm" os="${os.unix}" dir="${web.home}/logs" spawn="false"> 
     1234      <arg value="-f"/> 
     1235      <arg value="server.log"/> 
     1236    </exec> 
     1237 
     1238    <exec executable="touch" os="${os.unix}" dir="${catalina.home}/logs" 
     1239    spawn="false"> 
     1240      <arg value="catalina.out"/> 
     1241    </exec> 
     1242    <exec executable="touch" os="${os.unix}" dir="${web.home}/logs" 
     1243      spawn="false"> 
     1244      <arg value="greenstone.log"/> 
     1245    </exec> 
     1246    <exec executable="touch" os="${os.unix}" dir="${web.home}/logs" 
     1247      spawn="false"> 
    12351248      <arg value="server.log"/> 
    12361249    </exec>