File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem using import task of svnAnt 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 "Problem using import task of svnAnt" Watch "Problem using import task of svnAnt" New topic

Problem using import task of svnAnt

Venkatesh Nachimuthu

Joined: Jun 30, 2008
Posts: 7

I am new to SVN....i have to use Ant to perform check out,check in and set revision number's for files in svn problem is that i am using the below task to upload a new file into a repository

<import path="D:/SVN" url="${svn.url}" message="copying new files"/>

..where 'D:/SVN' is a working copy..but it shows error like cannot use 'import'

Below is the svn task i am using Note that there is no problem with the url or login credentials)

<svn username="xyz" password="xyz">

<import path="D:/SVN" url="${svn.url}" message="copying new files" recurse="false"/>


..Any help would be appreciated...

More Over, is there any way to check out a single file from a repository(by specifying the entire file path and name), version(revision number) it manually(after editing) and commit it...

--kindly help me if anyone know these stuff....

svn ant tasks doc is of no help.....
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Please check your private messages regarding an important administrative matter.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I believe that to use 'import', none of the files (or directories) in d:/svn can already be in subversion. If some of the files in d:\svn are already in subversion, then you need something like:

import path="d:/svn/path/to/the/file.txt" url="${svn.url}/path/to/the/file.txt"

If that does not solve your problem, run Ant withe the -v option and post the console output for the svn task.

JBoss In Action
I agree. Here's the link:
subject: Problem using import task of svnAnt
It's not a secret anymore!