ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Prepend text to a file
Date Fri, 20 Aug 2004 11:16:18 GMT
Since 1.6 there is a Filter you can use for that: ConcatFilter [1]
If you can┬┤t update, I suggest getting the source, compiling it and 
using a <typedef> to include into your build process.

Jan


[1] http://ant.apache.org/manual/CoreTypes/filterchain.html#concatfilter


> -----Urspr├╝ngliche Nachricht-----
> Von: tom ONeill [mailto:beagleboythefirst@hotmail.com]
> Gesendet am: Freitag, 20. August 2004 13:02
> An: user@ant.apache.org
> Betreff: Prepend text to a file
> 
> Hi all,
> 
> I have a very simple task which I was hoping someone could 
> help me with.
> 
> I am automatically generating a Java source file (from a wsdl 
> file) and I 
> want to add a single line to the beginning of this Java 
> source file to set a 
> correct package name. Following setting the package I 
> intended to use the 
> "Move" task to place the source file into the correct directory.
> 
> If possible I would prefer to hold the package value as a 
> property in my 
> build file (rather than holding it in a file and using the 
> "Concat" task).
> 
> I am using Ant version 1.5.1.
> 
> Thanks,
> Tom
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message