Re: build.date

Xserty <[email protected]> Thu, 05 Feb 2004 14:52:38 +0000
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Hi all!
	I appreciate very much your help Nicola, Adam & Nick, but I didn't
follow any of your advices: instead, I've created my own ant task that
does just what I wanted! ;))
Thank you all for the support given.
All the best,
	Xserty

On Wed, 2004-02-04 at 10:01, Xserty wrote:
> Hi all...
> I'm using Krysalis-Version to generate a Version.java class.
> Everything works, except the fact that the generated class contains the
> method getBuildDate() that returns null.
> 
> The ant code snippet used is the following:
> 
> <target name="version">
>   <version-stamp dest="src" versionId="com.mycompany" overWrite="true">
>     <version major="1" minor="0" point="0"/>
>   </version-stamp>
> </target>
> 
> I've noticed that the nested element version does not accept the "date"
> or "buildDate" attribute, so I assume that it should be set
> automagically, likely by the ant ${build.date} property(?).
> I've been all yesterday afternoon searching on mail archieves and on the
> Internet, but found nothing...
> Guessing that this would not be a Krysalis-Version problem, but an ant
> problem, I've tried even setting ant's variable {build.date} or
> initialising <TSTAMP/> in the target:
> 
> <tstamp>
>   <format property="build.date" pattern="yyyyMMdd"/>
> </tstamp>
>                    
> Still, this did not solve the problem... 
> Can anybody help me, please?
>         Xserty
> 
> PS: I'm using Krysalis-Version 0.9.0-rc2, ant version 1.5.4 and J2SE
> 1.4.2-b28 under Linux



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn