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

RE: [Subclipse-users] svnant : error "... is not a working copy"

From: Bonvin John <jbonvin_at_vaudoise.ch>
Date: Thu, 1 Jul 2010 08:50:31 +0200

Hi all

I found out that the problem was the version of SvnAnt I was using. I had chosen 1.1.0-RC2 because in the download page it was marked "bound against subversion 1.4.0". And as the Subversion server is under 1.4.4.30, I was confused.

Finally I tried SvnAnt 1.3.0 (marked as "bound against subversion 1.6.x") and it worked.

I now understand that that the subversion number mentioned for SvnAnt is actually the version of the subversion ClientAdapter, which controls the working copy format, not the version of Subversion running on the server.

Best regards,

        John

Vaudoise Assurances
John Bonvin
DS - DDI - Vie
Place de Milan
CH-1001 Lausanne
Tél +41 21 618 82 38
Fax +41 21 618 83 94
mailto:jbonvin_at_vaudoise.ch
http://www.vaudoise.ch

-----Message d'origine-----
De : Bonvin John [mailto:jbonvin_at_vaudoise.ch]
Envoyé : lundi, 28 juin 2010 11:29
À : users_at_subclipse.tigris.org
Objet : [Subclipse-users] svnant : error "... is not a working copy"

Hello

I'm trying to use svnant tasks in my ant build scripts, but it looks
like svnant does not recognise my working copy as such. Using Subclipse,
I checked out an Eclipse project from our Subversion repository, did a
few modifications to the items but did not commit them. I've no problems
using Subclipse on that working copy.

My setup :
Subversion 1.4.4.30
Eclipse 3.4.1 (JEE)
ANT 1.7.0
Subclipse 1.6.2 (JavaHL 1.6.0.4 and ClientAdapter 1.6.0.2)
SvnAnt 1.1.0-RC2

Here's part of my ant script :
>>>>>>>>>>>>>>>
        <path id="svnant.classpath" >
                <fileset
dir="C:/development/java/tools/svnant-1.1.0-RC2/lib" >
                        <include name="*.jar" />
                </fileset>
        </path>
        <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml"
                                        classpathref="svnant.classpath"
/>
        <target name="version.info">
                <svn>
                        <info target="${unit.home}" verbose="true"/>
                        <!-- <wcversion path="${unit.home}"/> -->
                </svn>
        </target>
<<<<<<<<<<<<<<<

When I run this target with the info task, I get the following error,
even though
the directory DOES contain a .svn subdirectory and behaves correctly
with Subclipse.
>>>>>>>>>>>>>>>
version.info:
     [echo] unit.home =
C:\development\java\projects\...\va_workspace_3.4.1_jee\va-component-too
ls
      [svn] <Info> started ...
      [svn] svn:
'C:\development\java\projects\...\va_workspace_3.4.1_jee\va-component-to
ols' is not a working copy
      [svn] <Info> failed !

BUILD FAILED
C:\development\java\projects\ch.vaudoise\va_workspace_3.4.1_jee\va-compo
nent-tools\buildTargets.xml:194: Failed to set 'info' properties
<<<<<<<<<<<<<<<

When I run the same target but with the wcVersion task, I get the
following
NullPointerException, which is consistent with the fact that my Eclipse
project
directory is not recognised as a working copy (that is issue 861) :
>>>>>>>>>>>>>>>
version.info:
      [svn] <WcVersion> started ...

BUILD FAILED
C:\development\java\projects\...\va_workspace_3.4.1_jee\va-component-too
ls\buildTargets.xml:193: java.lang.NullPointerException
<<<<<<<<<<<<<<<

Does anyone have an idea of what's going wrong and how to solve this
problem ?

Thanks in advance for your kind help, best regards,

        John
_Disclaimer Vaudoise.ch________________________________________________________________
Le present courriel, y compris les pieces jointes, s'adresse exclusivement a la (aux) personne(s) ou a la societe a laquelle (auxquelles) il est destine et peut comporter des informations confidentielles et/ou protegees par la loi. Toute divulgation, reproduction ou utilisation de ces informations est interdite et peut etre illegale. Si vous n'etes pas destinataire de ce courriel, merci de le detruire immediatement et d'en aviser l'expediteur.
This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized disclosure, copying or use of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender.

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2626858

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2628077

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-07-01 08:50:44 CEST

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.