[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] updating current directory from ant svn task on Windows

From: Eduard Kotysh <nutellaboi_at_gmail.com>
Date: 2007-03-22 20:51:03 CET

I believe I ran into a bug today. I wrote an ant svn task that simply
updates the current directory.
Here is the code inside my build.xml:

<?xml version="1.0"?>

<project name="test" basedir="." default="update">

 <!-- setup for the svn task -->
 <taskdef resource="svntask.properties" classpath="/c/tsunami/ant/apache-
ant-1.7.0/dist/lib/svnant.jar"/>

        <target name="update" description="run SVN update">
                <svn javahl="false">
                        <update dir="." recurse="false" />
                </svn>
        </target>

</project>

If I run ant -f build.xml in that directory, I get:

Resulting Output:

$ ant -f build.xml
Buildfile: build.xml

update:
      [svn] Using command line interface
Svn : Updating
up -r HEAD c:\tsunami\svn\ed\build --non-interactive
svn: Working copy 'c:\tsunami\svn\ed\build' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

BUILD FAILED
c:\tsunami\svn\ed\build\build.xml:9: Cannot update dir
c:\tsunami\svn\ed\build

Total time: 0 seconds

If I do svn stat, I don't see any outstanding locks, and svn cleanup doesn't
do anything.

If I go up a directory and run ant -f build/build.xml it works every time.

I'm not sure what's going on, but sure looks like a bug and I don't like the
workaround of going up a directory and running it from there.

This error has been noted by another user last year, here is the post
(although he suspected the whitespace in the path were causing the issue,
but that's clearly not the case here because my path is just
c:\tsunami\svn\ed\build):
http://svn.haxx.se/subusers/archive-2006-10/0195.shtml

Note: this is only problem on Windows running under either cygwin or plain
command line

Any help or ideas guys? Thank you

Eduard
Received on Thu Mar 22 20:51:18 2007

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.