I'm using Anthill Pro and it produces a version.txt file with the version in
which it created for the project. I want to use this version number for the
<currentVersion> in project.xml.
Seems a useful thing to be able to do, so I guess something must of done it
before. :)
Any help would be great?
Mike
<br><br><br>>From: Brett Porter
<[EMAIL PROTECTED]><br>>Reply-To: Brett Porter
<[EMAIL PROTECTED]><br>>To: Maven Users List
<[email protected]><br>>Subject: Re: [M1] Loading version from
file<br>>Date: Fri, 29 Jul 2005 02:59:22 +1000<br>><br>>It's only
possible from project.properties.<br>><br>>But I have to ask...
why?<br>><br>>- Brett<br>><br>>On 7/29/05, Michael Owen
<[EMAIL PROTECTED]> wrote:<br>> > Hi,<br>>
><br>> > I want to set the <currentVersion> in project.xml in
Maven 1.0.2 to load<br>> > from a file. So far I have:<br>>
><br>> >
<currentVersion>${currentversion}</currentVersion><br>>
><br>> > If I then set currentversion to a value in a property
file, it is set for<br>> > pom.currentVersion. What I need is to be
able to set the property by loading<br>> > up the value from a file. I
thought I could do this by doing this piece of<br>> > jelly script
before every goal:<br>> ><br>> > <loadfile
property="currentversion"
srcFile="${versionfile}"<br>> >
failonerror="false"/><br>> ><br>> > However, this
doesn't work because I guess the project.xml file has already<br>> >
be loaded up etc. I therefore need to execute this as one of the
first<br>> > things Maven does, before loading up project.xml,
properties etc. Anybody<br>> > know how to do this, or any other ideas
how loading from a file for the<br>> > <currentVersion> property
can be achieved?<br>> ><br>> > Many thanks,<br>> ><br>>
> Mike<br>> ><br>> ><br>> ><br>> >
---------------------------------------------------------------------<br>>
> To unsubscribe, e-mail: [EMAIL PROTECTED]<br>> >
For additional commands, e-mail: [EMAIL PROTECTED]<br>>
><br>>
><br>><br>>---------------------------------------------------------------------<br>>To
unsubscribe, e-mail: [EMAIL PROTECTED]<br>>For
additional commands, e-mail: [EMAIL PROTECTED]<br>><br>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]