[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] Conditions: find existence of a repository element

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-09-21 19:03:50 CEST

Jean-Pierre Fiset <jp@fiset.ca> wrote on 09/21/2006 01:01:54 PM:

> I am trying to write an ANT script that will evaluate if a tag is
> present in a repository. Basically, I'd like to do something equivalent
> <condition property="prop">
> <http url="http://svn.mycompany.com/project/tags/v-1.0"/>
> </condition>
> however, the SVN repository is hidden behind "https", and the above
> snippet does not work for all repositories. Looking quickly at svnant, I

> can not see an easy way of doing this.
> If someone has a solution, let me know. I am about to embark on
> developing <svnExists> tag for svnant...

Does svnAnt have a task that lets you run the equivalent of the svn info

svn info -r HEAD url://server/repos/folder

If so, you could use that and check for non-null output or an error or
whatever is appropriate.


To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Sep 21 19:03:58 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.