ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: taskdef and onerror -- possible ant 1.7.0 bug
Date Thu, 06 Aug 2009 19:20:45 GMT
On 2009-08-06, Scot P. Floess <sfloess@nc.rr.com> wrote:

>> The @onerror attribute to <taskdef> doesn't seem to work as
>> advertised.  Is this a bug (and whether it is or not, can anyone
>> suggest a workaround?)

>> Consider the following build.xml

>> % cat test-build.xml
>> <project name='test'>
>> <path id='nonexistent.classpath'>
>>   <fileset dir='/not/a/path' includes='jar.jar'/>
>> </path>
>> <taskdef name='task' classname='one.two.BuckleMyShoe' onerror='ignore'>
>>   <classpath refid='nonexistent.classpath'/>
>> </taskdef>
>> </project>
>> %

>> BUILD FAILED
>> /checkouts/skua.googlecode.com/trunk/code/qsac/test-build.xml:5:
>> /not/a/path not found.

This is not taskdef telling you off, it is fileset.  You'll need
erroronmissingdir="false" on the fileset.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message