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 SVNAnt checkout and update overriding local file changes 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 "SVNAnt checkout and update overriding local file changes" Watch "SVNAnt checkout and update overriding local file changes" New topic
Author

SVNAnt checkout and update overriding local file changes

Phil Krasko
Greenhorn

Joined: Dec 11, 2008
Posts: 1
Hi,

I just installed svnant the other day and have a few questions on the checkout and update tasks of svn. I'm fairly new to svn and have always used cvs in the past.

I used checkout to bring a local copy of the repository to my disk. It took about 5 mins.

Using update it took almost 18 mins. Why so long? CVS seems to be much faster (i think).

My main question has to deal with updating local files that have been modified. If i make changes to a local file and then use ant to update my local repo the modified file is never overwritten from head. How can I force svn to update local files that have been modified?

Your help would be greatly appreciated.

Here is a snippet from my build file:

Manish Doomra
Greenhorn

Joined: Sep 05, 2008
Posts: 21
Originally posted by Phil Krasko:
Hi,

I just installed svnant the other day and have a few questions on the checkout and update tasks of svn. I'm fairly new to svn and have always used cvs in the past.

I used checkout to bring a local copy of the repository to my disk. It took about 5 mins.

Using update it took almost 18 mins. Why so long? CVS seems to be much faster (i think).

My main question has to deal with updating local files that have been modified. If i make changes to a local file and then use ant to update my local repo the modified file is never overwritten from head. How can I force svn to update local files that have been modified?

Your help would be greatly appreciated.

Here is a snippet from my build file:


Hello Phil,

This could have been done without using svnant, and simply using ant tasks by :-

where svn.path is the local path which you want to update, if this is the root directory of your application, then all sub-folders will be updated to the latest revision of the repository.
Put svn.path, svn.user and svn.password in a property file(say you give it name 'svn-update.properties') and include that property file in your build file by using the following command:-

[ December 21, 2008: Message edited by: Manish Doomra ]

Manish Doomra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SVNAnt checkout and update overriding local file changes