[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 no longer working

From: Gary McWilliams <gary_mcwilliams_at_lagan.com>
Date: 2006-10-27 16:08:06 CEST

> -----Original Message-----
> From: Mark Phippard [mailto:markp@softlanding.com]
> Sent: 27 October 2006 14:02
> To: users@subclipse.tigris.org
> Subject: Re: [Subclipse-users] svnant no longer working
>
> "Gary McWilliams" <gary_mcwilliams@lagan.com> wrote on
> 10/27/2006 08:52:56
> AM:
>
> > I have upgraded subclipse to 1.1.8 & tortoise to 1.4, so my
> local svn
> files
> > are at svn 1.4 level.
> >
> > When I run an ant build it complains about files not being under
> > version
> control.
> > So, I figured, I should get the latest svnant and use that.
> So I have
> > checked it out and built it and now the svn tasks are
> running (i.e. no
> > longer complaining about files not being under version control), but
> *my*
> > getLatestRevision task (below) just no longer works.
> >
> > The task is defined as:
> > <target name="getLatestRevisionNumber" depends="svn.init"> <echo
> > message="svn.javahl:${svn.javahl}" /> <echo
> > message="svn.username:${svn.username}" /> <echo
> > message="svn.password:${svn.password}" /> <svn
> javahl="${svn.javahl}"
> > username="${svn.username}"
> password="${svn.password}">
> > <status path="${co.dir}"
> lastChangedRevisionProperty="svn.lastCommitRevision"/>
> > </svn>
> > <property name="svn.tag"
> value="${buildDate}_${svn.lastCommitRevision}"/>
> > </target>
> >
> > I have added the echo messages for debugging.
> >
> > When I was using subclipse 1.1.6 and an old version of svnant, this
> worked a treat:
> > getLatestRevisionNumber:
> > [echo] svn.javahl:false
> > [echo] svn.username:${svn.username}
> > [echo] svn.password:${svn.password}
> > [svn] Using javasvn
> > Svn : Status
> > [echo] svn.rev:1418
> > When I run the same target using the latest (svnant/trunk) code, I
> always
> > get back an empty string, never the revision number.
> > getLatestRevisionNumber:
> > [echo] svn.javahl:true
> > [echo] svn.username:xxx
> > [echo] svn.password:xxx
> > [svn] Using javasvn
> > [svn] <Status> started ...
> > [svn] <Status> finished.
> > [echo] svn.rev:
> > I have tried setting svn.javahl=true which makes no
> difference. I also
> tried
> > feeding in a valid user/password which also made no difference.
> > Is svnant (status) compatible with 1.4?
> > Am I doing something wrong?
>
> Your script says it is using JavaSVN, not JavaHL. So you
> would need to grab the version of JavaSVN included in
> Subclipse 1.1.8 to use with your
> 1.4 WC formats, or change your script to use JavaHL or the
> command line.
>
> Mark
>

D'oh.

Ok, I see that now. However, on another aspect of this.
I tried running the svn task with the javahl="true" which did not seem
to use javahl (as you can see in the output snippet above).

I'll definitely use the latest JavaSVN (I'm assuming the one shipped
with subclipse will do) and continue with that, thanks.

The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may
be unlawful. Please immediately contact the sender if you have received
this message in error.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Oct 27 16:07:24 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.