ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr_jym <mikepi...@yahoo.com>
Subject empty the file
Date Tue, 16 Mar 2010 00:17:29 GMT

I am using Ant 1.7.0 not Ant 1.7.1 that has "truncate" task.
I have to empty the file using Ant 1.7.0. on Linux - file name is
/var/log/testmesg, and it has read/write permissions for everybody. 
I tried the following: 

<ant default="truncate">
      <target name="truncate">
        <exec executable="cat" searchpath="bin">
         <arg value="/dev/null"/>
         <arg value=">"/>
         <arg value="/var/log/testmesg"/>
        </exec>
      </target>
    </ant>

and this does not empty the file. What am I doing wrong, or maybe there is
another was to clean up the file?
Thanks.
-- 
View this message in context: http://old.nabble.com/empty-the-file-tp27912120p27912120.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message