ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Clitheroe <g.clithe...@gmail.com>
Subject Re: Get current module's version in Ant
Date Tue, 09 Mar 2010 19:14:03 GMT
Hi,

You can use ivy:buildnumber

http://ant.apache.org/ivy/history/latest-milestone/use/buildnumber.html

We are frequently doing releases like 2.0.1-RC2 etc and to switch from an
RC* series to finals we still use a property to be able to override the
build number from the command line.

Cheers,
Geoff


On Wed, Mar 10, 2010 at 7:18 AM, Alessandro Marino
<ale.marino78@gmail.com>wrote:

> I've a project with various modules, the last couple of modules are the war
> artifacts. How can I inject the module's version in the war Ant task ?
>
> At the moment I'm defining a property in the ivyconfig.xml file and then I
> retrieve it when creating the war, but I'm sure that there's a clener way
> to
> do this.
>
> Thanks and regards,
> Alessandro
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message