build.date

Xserty <[email protected]> Wed, 04 Feb 2004 10:01:36 +0000
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
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