Problem using <svn> tag in ant script: Using svnant-1.2.1

View: New views
1 Messages — Rating Filter:   Alert me  

Problem using <svn> tag in ant script: Using svnant-1.2.1

by Pavan Mallegowda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I want to export my project in SVN, using ANT script.

Here is what I do:

1. Add svnant.jar, svnClientAdapter.jar, svnjavahl.jar, ganymed.jar and svnkit.jar (taken from svnant-1.2.1) in the classpath, after adding these jar files in my lib folder.
2. In my build file I add the following:

    <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml"/>
    ..
    ..
    ..
    <target name="svnexport">"
       <svn javahl="true" svnkit="true" username="abc" password="xyz"
          <export srcUrl="<svn_src_path>" destPath="<destination_path>" />
       </svn>
    </target>


3. I run "ant svnexport" from command line and I get the following error:

    "Cannot find javahl, svnkit nor command line svn client"

I tried all combinations of true/false values to javahl and svnkit. Also, I tried not to use javahl or svnkit inside <svn> tag. But this too doesn't help.

Am I missing something here? Can anyone please help urgently?

PS: Pls reply to me directly since I am not registered in the user group.

Thanks in Advance,
Pavan