tember 20, 2005 8:26 PM
> >To: 'Ant Users List'
> >Subject: RE: Extracting application version from Java file
> >
> >Hello List,
> >
> >I was going to reply to Nicolas that, whilst i agree with the
> >other two replies (you should pass the version i
ADEMAKERS Tanguy
>Sent: Tuesday, September 20, 2005 8:26 PM
>To: 'Ant Users List'
>Subject: RE: Extracting application version from Java file
>
>Hello List,
>
>I was going to reply to Nicolas that, whilst i agree with the
>other two replies (you should pass the
ied
copying the class to a properties file by using the classconstants
filterchain... didn't work (same error).
/t
>-Original Message-
>From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 20, 2005 6:23 PM
>To: user@ant.apache.org
>Subject: Extra
We go one step further..
In the code base there is a build.properties file with
the
following data:
build.version=XX.YY.ZZ
build.date=2005-09-21
build.date.format=-mm-dd
Then instead of a static variable in Java class (say
called BuildInfo.java) we have static method called
getBuildVersion(
Hi Nicolas,
how about controlling the version number in the build?
then update the version in the source file on every build:
and then compile and use ${version} to name the jar?
Barry
Nicolas Vervelle wrote:
Hi,
In one of my Java source file, I have a line like this:
user@ant.apache.org
cc
Subject
Extracting application version from Java file
Hi,
In one of my Java source file, I have a line like this:
public final static String version = "XX.YY.ZZ";
I'd like to extract the XX.YY.ZZ from the Ant build to name the
resulting jar file wi
Hi,
In one of my Java source file, I have a line like this:
public final static String version = "XX.YY.ZZ";
I'd like to extract the XX.YY.ZZ from the Ant build to name the
resulting jar file with it : Jmol.XX.YY.ZZ.jar
Can someone help me with how to extract the string from the file ?
Thank