You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by siba prasad <si...@ymail.com> on 2008/10/15 06:55:31 UTC
svn tagging using Ant
Hi ,
The requirement is as follows.I want to tag the code base.For which I want a
target in my build.xml which will do the following steps.
1- Take the update of code base
2- Tag the code base as R.xxxx
where xxxx will be the revision no.
Please help.
Thanks
siba
--
View this message in context: http://www.nabble.com/svn-tagging-using-Ant-tp19986714p19986714.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: svn tagging using Ant
Posted by Nan Null <nu...@gmail.com>.
The document for svn ant will tell you exactly how to do that. Give
it a shot, and ask question later, specific exactly what problem you
encounter.
On Wed, Oct 15, 2008 at 12:55 AM, siba prasad <si...@ymail.com> wrote:
>
> Hi ,
>
> The requirement is as follows.I want to tag the code base.For which I want a
> target in my build.xml which will do the following steps.
>
> 1- Take the update of code base
>
> 2- Tag the code base as R.xxxx
>
> where xxxx will be the revision no.
>
> Please help.
>
> Thanks
> siba
> --
> View this message in context: http://www.nabble.com/svn-tagging-using-Ant-tp19986714p19986714.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: svn tagging using Ant
Posted by David Weintraub <qa...@gmail.com>.
You need to get svn-ant, install it on your build system, and then
include the jar in your build.xml file.
Here's what I have in my build.xml. I pass build.num through the command line:
<path id="svn.tasks">
<pathelement location="${ant.home}/lib/svnjavah1.jar"/>
<pathelement location="${ant.home}/lib/svnant.jar"/>
<pathelement location="${ant.home}/lib/svnClientAdapter.jar"/>
</path>
<property name="svn.username" value="svn-ant"/>
<property name="svn.password" value="svn-ant"/>
<property file="${user.home}/.subversion/svn.properties"/>
That defines the ant tasks, the labeling looks like this:
<target name="label"
description="Label Subversion archive with "label" property">
<fail
unless="label"
message="Cannot label Subversion archive. Property
"label" not defined."/>
<svn
username="${svn.username}"
password="${svn.password}">
<copy srcPath="."
destUrl="${arm-url}/${arm.build.tags}/ARM-${build.num}"
message="Creating Build ${build.num} of ARM"/>
</svn>
</target>
--
David Weintraub
qazwart@gmail.com
On Wed, Oct 15, 2008 at 12:55 AM, siba prasad <si...@ymail.com> wrote:
>
> Hi ,
>
> The requirement is as follows.I want to tag the code base.For which I want a
> target in my build.xml which will do the following steps.
>
> 1- Take the update of code base
>
> 2- Tag the code base as R.xxxx
>
> where xxxx will be the revision no.
>
> Please help.
>
> Thanks
> siba
> --
> View this message in context: http://www.nabble.com/svn-tagging-using-Ant-tp19986714p19986714.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org