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

[Subclipse-users] SVNANT 1.0.0 Bug Report

From: Markus KARG <karg_at_quipsy.de>
Date: 2006-12-08 11:15:04 CET

I have detected a bug and want to report it here. Maybe the author likes
to discuss first before I'm adding it into a tracker.

See the following svnant script:

<svn>
    <delete>
         <fileset dir="foo">
               <include name="**/test/*"/>
         </fileset>
    </delete>
</svn>

That works well as long as there is at least one file found.
But it will crash down when there are no files found and you're in
command line mode:
SVN ant then tries to run the command "svn rm" without any parameters.

The fault is: If the fileset provides an empty result, then "svn rm"
must not get called at all!

It is hard to work around that in ant, since there is no "ignore
failures of svn" feature (like "failonerror=false"). At the moment I
work around by putting the delete into its own target, then calling
"subant" with "failonerror=false". But this is not very smart.

Regards
Markus

Received on Fri Dec 8 11:15:36 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.