[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: Jean-Pierre Fiset <jp_at_fiset.ca>
Date: 2006-09-21 19:18:38 CEST

Yes, I looked into that, but the task fails when a repository element is
not present. As it should. However, I want to capture the failure into a
property and have the script react to it. Conditions in ANT must derive
org.apache.tools.ant.taskdefs.condition.Condition (ref:
http://ant.apache.org/manual/CoreTypes/custom-programming.html#customconditions),
yet I can not find any component of svnant that implements it.

If there is a trick where the failure of an ANT task can be captured
into a property, it would be useful.

JP

Mark Phippard wrote:
> 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
>>
> to
>
>> <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
> command?
>
> 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.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
>
>

---------------------------------------------------------------------
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:18:10 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.