ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me_zeta <me_z...@yahoo.com>
Subject RE: Ant Task to Write to a file
Date Thu, 09 Nov 2006 09:58:14 GMT


The value i want to write to a file is an xml string of the form

<module>{data comes here}
</module>

how can this be done??



Tom Corcoran-2 wrote:
> 
> Here's an example which creates the file datetime.inc in your classes
> directory :
> 
>   <property name="build" location="classes"/>
>   <propertyfile
>     file="${build}/datetime.inc">
>     <entry  key="CompileDateTimeStr" type="date" value="now" pattern="d
> MMM yyyy HH:mm:ss"/>
>   </propertyfile>
> 
> Tom.
> 
> 
> -----Original Message-----
> From: me_zeta [mailto:me_zeta@yahoo.com] 
> Sent: 09 November 2006 09:38
> To: user@ant.apache.org
> Subject: Ant Task to Write to a file
> 
> 
> Hi all,
> 
>      Is there any ant task to write some data to a file.
> 
> zeta
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Ant-Task-to-Write-to-a-file-tf2600638.html#a7255412
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