ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Problem in extending org.apache.tools.ant.taskdefs.Java class
Date Wed, 09 Aug 2006 18:27:01 GMT
On Tue, 8 Aug 2006, Ben <ajoo.email@gmail.com> wrote:
> On 8/8/06, Stefan Bodewig <bodewig@apache.org> 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.

Stefan

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


Mime
View raw message