Ignore:
Timestamp:
2012-07-23T19:36:07+12:00 (12 years ago)
Author:
ak19
Message:

ant target clean-logs now also clears server.log.

File:
1 edited

Legend:

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

    r25904 r26002  
    12101210    It seems to have a problem with cat or </dev/null, with or without the < sign. -->
    12111211  <target name="clean-logs" description="Empties catalina.out, greenstone.log and contents of web/logs/tmp">
    1212     <echo>Truncating catalina.out and greenstone.log, and emptying ${web.home}/logs/tmp</echo>
     1212    <echo>Truncating catalina.out, greenstone.log and server.log, and emptying ${web.home}/logs/tmp</echo>
    12131213    <exec executable="truncate" os="${os.unix}" dir="${catalina.home}/logs" spawn="false">
    12141214      <arg value="-s0"/>
     
    12191219      <arg value="greenstone.log"/>
    12201220    </exec>
     1221    <exec executable="truncate" os="${os.unix}" dir="${web.home}/logs" spawn="false">
     1222      <arg value="-s0"/>
     1223      <arg value="server.log"/>
     1224    </exec>
    12211225
    12221226    <exec executable="cmd" os="${os.windows}" dir="${catalina.home}/logs" spawn="false">
     
    12251229    <exec executable="cmd" os="${os.windows}" dir="${web.home}/logs" spawn="false">
    12261230      <arg line="/c echo. > greenstone.log"/>
     1231    </exec>
     1232    <exec executable="cmd" os="${os.windows}" dir="${web.home}/logs" spawn="false">
     1233      <arg line="/c echo. > server.log"/>
    12271234    </exec>
    12281235
Note: See TracChangeset for help on using the changeset viewer.