[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subclipse-users
Subject:    [Subclipse-users] svnant : error "... is not a working copy"
From:       Bonvin John <jbonvin () vaudoise ! ch>
Date:       2010-06-28 9:29:29
Message-ID: 3CEF9551CEAFAE4F84B6E67FECB8B4B102E02EA3 () sgex00d ! vaudoise ! ch
[Download RAW message or body]

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@subclipse.tigris.org].


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic