ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben <ajoo.em...@gmail.com>
Subject Re: Problem in extending org.apache.tools.ant.taskdefs.Java class
Date Wed, 09 Aug 2006 04:40:13 GMT
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. :-<





On 8/8/06, Stefan Bodewig <bodewig@apache.org> wrote:
> On Tue, 8 Aug 2006, Ben <ajoo.email@gmail.com> wrote:
>
> > Nah. commandline will never get me the hierarchy that I
> > want. java.exe only accepts a flat set of urls.
>
> I know.  That's why I assumed you only needed to modify the non-forked
> case.
>
> > What I'm doing is to have a proxy class: MainProxy.
>
> So still you only need to modify the command line.  Add two system
> properties, remove the classpath setting and throw in MainProxy as the
> class to execute.
>
> 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?
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

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


Mime
View raw message