Hi,

if your problem is formatting the date, then have a look at <tstamp>
Writing text to a file can be done with <echo>.

Otherwise I'm afraid, I don't understand what the problem is.

Greetings
Chris

 

> -----Ursprüngliche Nachricht-----
> Von: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 23. Februar 2004 14:00
> An: Ant Users List
> Betreff: Re: Creating a java file
> 
> Pritesh,
> 
> Take a look at FilterSets in the manual, under "Concepts and Types".
> 
> /t
> 
> 
> Pritesh saharey wrote:
> 
> >Hello All,
> >        A very simple problem for you, i would like to create a java 
> >file using ant in which i want to a code something like this
> >//----------------
> >public class VersionDate { public static String VersionDate 
> = " Mon Dec 
> >15 17:16:45 IST 2003 ";}
> >//----------------
> >In this java code VersionDate="" should be the date of 
> running the build script.
> >
> >can anybody help me out.
> >
> >
> >Pritesh Saharey
> >BE(Mech)
> >Software Engineer
> >Apsora(Ind.)Pvt. Ltd., Pune
> >http://www.apsora.com
> >http://in.geocities.com/priteshsaharey/
> >
> >
> >_____________________________________________________________
> >Join SQAtester.com Community  ---> 
> >http://www.sqatester.com/testersarea/joinus.htm
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional 
> >commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For 
> additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to