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

[Subclipse-users] Whitespace in current path causes update ant task to fail

From: Steven Morrison <sgmorrison_at_gmail.com>
Date: 2006-10-12 19:39:31 CEST

Hello all,

I've run into a bug when using the following setup:

OS: Windows XP Professional
Ant: 1.6.5
Subclipse: 1.0.3
Subversion: 1.3.2
Svn Ant: 1.0.0

I am writing an ant build system that updates then compiles a
project's supporting projects, then the current project. The ant code
I have is of the form:

        <property name="workspace" value="${basedir}/.." />
        <property name="buildorder" value="supportingProject, thisProject" />

        <target name="update-all" depends="prepare">
                <foreach list="${buildorder}" delimiter="," target="svn-update"
param="project.name" />
        </target>

        <target name="svn-update">
                <svn>
                        <update dir="${workspace}/${project.name}"/>
                </svn>
        </target>

Running "ant update-all" within the project's directory (so that
build.xml is in "."), execution fails with the following message:

Buildfile: build.xml
update-all:
svn-update:
      [svn] Using command line interface
Svn : Updating
up -r HEAD C:\Documents and Settings\sgmorrison\workspace\thisProject
--non-interactive
svn: Working copy 'C:\Documents and
Settings\sgmorrison\workspace\thisProject' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

BUILD FAILED
C:\Documents and
Settings\sgmorrison\workspace\thisProject\build.xml:13: The following
error occurred while executing this line:
C:\Documents and
Settings\sgmorrison\workspace\thisProject\build.xml:42: Cannot update
dir C:\Documents and Settings\sgmorrison\workspace\thisProject

Running the same build target from the parent directory (i.e. with
"ant -f thisProject/build.xml update=all") succeeds.

Running the same build target in a different workspace (located in
/home/sgmorrison/workspace/thisProject under Linux) succeeds.

The problem appears to be the whitespace or colon in the directory
"C:\Documents and Settings\sgmorrison\workspace\thisProject". I
realise that changing OS half-way through may skew the results, so am
happy to try under Windows with a space-less path if necessary.

Could you advise on whether this is an existing bug, and if further
details are required before I submit it?

Thanks,
Steven Morrison

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Oct 12 19:42:52 2006

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.