You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by ad...@bt.com on 2013/01/21 17:14:48 UTC
artefact timestamp into ant property
When I publish an artefact ivy kindly adds a timestamp to the filename:
[ivy:publish] published blah to http://host/artefacts/content/repositories/snapshots/com/acme/blah-20130121160013.jar
Can I get the timestamp into an ant property for later use?
TIA
Adrian
RE: artefact timestamp into ant property
Posted by ad...@bt.com.
Brilliant!
Thanks David
-----Original Message-----
From: David Weintraub [mailto:qazwart@gmail.com]
Sent: 21 January 2013 16:44
To: ivy-user@ant.apache.org
Subject: Re: artefact timestamp into ant property
You can try this the other way around: First, build an Ant property called "ivy.publish.pubdate" with the <tstamp> task Use the format "yyyyMMddHHmmss". Next, when you run <ivy:publish>, set "pubdate" to the "ivy.publish.pubdate" property. That will set the property and the publish timestamp to the same value.
--
David Weintraub
qazwart@gmail.com
perl -e 'print "Just another second rate Perl Hacker\n";'
On Jan 21, 2013, at 11:14 AM, adrian.p.smith@bt.com wrote:
> When I publish an artefact ivy kindly adds a timestamp to the filename:
>
> [ivy:publish] published blah to http://host/artefacts/content/repositories/snapshots/com/acme/blah-20130121160013.jar
>
> Can I get the timestamp into an ant property for later use?
>
> TIA
>
> Adrian
>
Re: artefact timestamp into ant property
Posted by David Weintraub <qa...@gmail.com>.
You can try this the other way around: First, build an Ant property called "ivy.publish.pubdate" with the <tstamp> task Use the format "yyyyMMddHHmmss". Next, when you run <ivy:publish>, set "pubdate" to the "ivy.publish.pubdate" property. That will set the property and the publish timestamp to the same value.
--
David Weintraub
qazwart@gmail.com
perl -e 'print "Just another second rate Perl Hacker\n";'
On Jan 21, 2013, at 11:14 AM, adrian.p.smith@bt.com wrote:
> When I publish an artefact ivy kindly adds a timestamp to the filename:
>
> [ivy:publish] published blah to http://host/artefacts/content/repositories/snapshots/com/acme/blah-20130121160013.jar
>
> Can I get the timestamp into an ant property for later use?
>
> TIA
>
> Adrian
>