You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Dowd, Brian" <bd...@lehman.COM> on 2002/08/01 16:31:19 UTC

Dynamic version file generation

HI All,
    I want to do the following with an ant 'release' target (syntax = "ant
release -Dversion=3_1":

Currently it does a clean, build, cvs tag and creates a .tar.gz file upon
release, I want it to also :

   1. dynamically create a file in a specific location called VERSION which
contains the line "3_1"

   2. cvs commit that VERSION file. (already done - trivial)


 In this way a VERSION file specific to the release version is generated and
is part of the version control
 and the tarball.

 I have done this already using an <exec ....>  but there is I suspect a
cleaner (i.e. non-fork/exec) way to 
 generate a file dynamically - has anyone any ideas ?

Any help much appreciated.

Cheers,
Brian.




------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above.  If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited.  This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such.  All information is subject to change without notice.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Dynamic version file generation

Posted by "Rolf F. Katzenberger" <rf...@gmx.net>.
On Thu, 1 Aug 2002 15:31:19 +0100, "Dowd, Brian" <bd...@lehman.COM>
wrote:

>     I want to do the following with an ant 'release' target (syntax = "ant
> release -Dversion=3_1":
> 
> Currently it does a clean, build, cvs tag and creates a .tar.gz file upon
> release, I want it to also :
> 
>    1. dynamically create a file in a specific location called VERSION which
> contains the line "3_1"

<echo message="${version}" file="./mydir/VERSION" />

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>