File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes svn update using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "svn update using ant" Watch "svn update using ant" New topic
Author

svn update using ant

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
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


SCJP,SCWCD, Into ATG now!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

Joshua,
Did you use <taskdef to inform the build.xml about the svn tasks?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

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

Joined: Jul 11, 2001
Posts: 14112
You can replace the "name" and "classname" attributes by

resource="svntask.properties"


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: svn update using ant