Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant script for svn checkout

 
saam mathur
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic