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 <[EMAIL PROTECTED]> wrote:
On Tue, 8 Aug 2006, Ben <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to