ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <sco...@javactivity.org>
Subject Re: How to write a JUnit test for this new functionality?
Date Sun, 29 May 2005 21:44:58 GMT
Stephane Bailliez wrote:
> Steve Cohen wrote:
> 
>> However, my knowledge of Ant internals is somewhat limited.  How can I 
>> tell an ant project in my test code that when it sees an <ftp> tag, it 
>> should delegate the performance of this task to myRetryableFTP, 
>> instead of to the standard FTP as it would normally do?  Is there an 
>> example of this sort of thing within the existing Ant test suite? .
> 
> 
> project.addTaskDefinition("ftp", MyRetryableFtp.class) ?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 
> 
Thanks.
I found something else that works, using ComponentHelper, but this seems 
simpler.

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


Mime
View raw message