wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes ant script for svn checkout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant script for svn checkout" Watch "ant script for svn checkout" New topic
Author

ant script for svn checkout

saam mathur
Greenhorn

Joined: Mar 27, 2014
Posts: 1
i have written the below build script to take the checkout from svn but its not working. please help me out.

<?xml version="1.0" encoding="iso-8859-1"?>

<project name="test" basedir="." >
<path id="path.svnant">
<pathelement location="/lib/svnant.jar" />
<pathelement location="/lib/svnClientAdapter.jar" />
<pathelement location="/lib/svnjavahl.jar" />
</path>
<target name="checkout-codebase">
<property name="svn.username" value="abs"/>
<property name="svn.password" value="abs123"/>
<property name="svn.url" value="Path-to-svn-trunk-folder"/>
<property name="project.code" value="./Mbuild"/>

<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />

<svnSetting svnkit="true" javahl="false" id="svn.settings" username="${svn.username}" password="${svn.password}"/>
<svn refid="svn.settings">
<checkout url="${svn.url}" revision="HEAD" destpath="${project.code}" />
</svn>
</target>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41633
    
  55
Welcome to JavaRanch.

What does "not working" mean? What did you expect t happen, and what happened instead? TellTheDetails, and post any messages you have gotten as a result.

This looks wrong: classpathref="path.svnant", as does refid="svn.settings".


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant script for svn checkout