ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Problem in extending class
Date Wed, 09 Aug 2006 18:27:01 GMT
On Tue, 8 Aug 2006, Ben <> wrote:
> On 8/8/06, Stefan Bodewig <> wrote:
>> So technically modifying the java task to allow your subclass to
>> control the CommandlineJava instance that's being used (in the same
>> way the JUnit task does) should work.  Correct?
> Looks not that easy. JUnit task exclusively uses getCommandLine()
> method to get the CommandlineJava object, which gives me an
> extension point (well, based upon the impl detail though).
> Java task uses "cmdl" variable directly, there's no way I can sneak
> anything in there. So, I'm still stuck. :-<

Note that I talked about modifying the Java task.  It would be doable
(and in fact I'll just do it in a few minutes) to modify the task so
that it behaves the same way as the JUnit task does WRT the
CommandlineJava instance.  I was just checking whether this would be
enough for the extensions you have in mind.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message