Getting CVS Branch in Ant build

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting CVS Branch in Ant build

Xavier Coulon
Hello,

Is it possible to obtain the CVS Branch (or HEAD) hudson used to checkout the module before launching the Ant build ?
There is a SVN_REVISION environment variable, so maybe an equivalent CVS_BRANCH could be made available ?

Thank you in advance
Xavier
Reply | Threaded
Open this post in threaded view
|

Re: Getting CVS Branch in Ant build

Jesse Glick
Xavier Coulon wrote:
> Is it possible to obtain the CVS Branch (or HEAD) hudson used to
> checkout the module before launching the Ant build ?

BTW workaround if it is not yet supported with an env var: just open
CVS/Tag in some folder, and remove the leading 'T' character (and
trailing newline).

-J.

--
[hidden email]  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Getting CVS Branch in Ant build

Kohsuke Kawaguchi
Administrator
In reply to this post by Xavier Coulon
Xavier Coulon wrote:
> Hello,
>
> Is it possible to obtain the CVS Branch (or HEAD) hudson used to checkout
> the module before launching the Ant build ?
> There is a SVN_REVISION environment variable, so maybe an equivalent
> CVS_BRANCH could be made available ?

Done. Will be in 1.120.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Getting CVS Branch in Ant build

Xavier Coulon
Thank you very much !

Regards,
Xavier

On 7/19/07, Kohsuke Kawaguchi <[hidden email] > wrote:
Xavier Coulon wrote:
> Hello,
>
> Is it possible to obtain the CVS Branch (or HEAD) hudson used to checkout
> the module before launching the Ant build ?
> There is a SVN_REVISION environment variable, so maybe an equivalent
> CVS_BRANCH could be made available ?

Done. Will be in 1.120.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]