ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Adelöw <johan.ade...@corustechnologies.com>
Subject How can I append files from exec?
Date Fri, 20 Oct 2000 13:06:30 GMT
Is there some way to append to a file when using the exec target

Ive tried to do like this 

<echo message="@${exec_file}" file="${logfile}" append="true"/>
		<exec executable="sqlplus" dir="./" output="${tmplogfile}"
failOnError="true">
			<arg
value="${db_user}/${db_passwd}@${database_sid}"/>
			<arg value="@${exec_file}"/>
		</exec>
	
<exec executable="sh" dir="${exec_dir}./" output="${os_log}"
failOnError="true">
	<arg value="&quot;cat ${tmplogfile}: &gt;&gt; ${logfile}&quot;"/>
</exec>

When I do like this (on linux) the cat command isn't executed. Is there some
other way to achive this functionality.  

I realy would have wanted is that the <exec> task had a append alternative
for the output statement in order to append to a logfile.

/Johan

_________________________________________________
 
E-mail: johan.adelow@corustechnologies.com
Direct: +46-8-678 80 60
Mobile: +46-70-563 13 97
Office: +46-8-4403860 (Always open)
Home page: www.corustechnologies.com
_________________________________________________
 


Mime
View raw message