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 Problem using import task of svnAnt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

Problem using import task of svnAnt

Venkatesh Nachimuthu
Greenhorn

Joined: Jun 30, 2008
Posts: 7
Hi,

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 repository..my 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"/>


</svn>

..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
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Vencat",
Please check your private messages regarding an important administrative matter.
-Ben


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

Joined: May 14, 2008
Posts: 5811
    
    7

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
 
Don't get me started about those stupid light bulbs.
 
subject: Problem using import task of svnAnt
 
Similar Threads
Unable to create the tar file in the dist directory.
SVNAnt checkout and update overriding local file changes
Problem using foreach task...target not being called...
Error - "Cannot use javahl nor command line svn client" with subversion
svnant checkout doesnt work