Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

svn update using ant

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while trying to update from svn using
<svn dest="D:/Checkout" javahl="true" command="update"/>
I am getting error that svn cannot be recognized.

I have added library files from svnant and svnClientAdapter into the lib folder of ant installed location.

Can someone please let me know what jar file am I missing
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joshua,
Did you use <taskdef to inform the build.xml about the svn tasks?
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne,

I have placed taskdef task in the xml file.

<taskdef name="svn" classname="org/tigris/subversion/svnant/Update">
<classpath>
<pathelement
location="D:/Program Files/ant/apache-ant-1.6.2/lib/svnant.jar"/>
</classpath>
</taskdef>

But now I am getting error that taskdef class org/tigris/subversion/svnant/Update cannot be found.

Regards,
Joshua
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joshua,
I think the classname needs to be org.tigris.subversion.svnant.Update

I've only seen it written with dots, never slashes. This includes the task def documentation.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can replace the "name" and "classname" attributes by

resource="svntask.properties"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic