You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@depot.apache.org by Nicola Ken Barozzi <ni...@apache.org> on 2004/02/04 16:35:46 UTC
Re: build.date
Krysalis Version is now part of the "Depot" project that is being
incubated at Apache.
The new mailing list is:
depot-dev@incubator.apache.org
To subscribe send an empty mail to:
depot-dev-subscribe@incubator.apache.org
This mail is also being cced to depot-dev@incubator.apache.org.
Xserty wrote:
> Hi...
> Just an update to my problem:
> When I call the following task within my target
> <echo message="build.date = ${build.date}"/>
> I get:
> [echo] build.date = 20040204
> So I suppose it a Krysalis-Version problem, and not ant's as I
> suggested.
>
> Any help appreciated!
> 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.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------