ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: svn tagging using Ant
Date Thu, 16 Oct 2008 17:02:46 GMT
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 &quot;label&quot; property">
        <fail
            unless="label"
            message="Cannot label Subversion archive. Property
&quot;label&quot; 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 <siba.swain@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


Mime
View raw message