ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <>
Subject Re: Cactus 1.8 / Ant 1.8 Integration
Date Sun, 10 Feb 2008 14:18:41 GMT

Sorry for the formating :-(.

Hi guys,

it's Petar Tahchiev from the Jakarta Cactus Team (again :-)).
I am trying to integrate the CactusTask with Ant 1.8-alpha.
The CactusTask does:
0) Extends the JUnitTask from Ant.
1) Gets all the tests from JUnitTask
2) Iterates over them and sets different properties to each one of them.
3) Calls the JUnitTask to executes the test-cases.

So, the basis is that we are no longer able to use


because the delegate field (Object of type JUnitTaskMirror) leaves
uninitialized and thus the CactusTask throws NLPE.
This way to execute the tests we are bound to use the execute() method of
JUnitTask (because in that method the delegate object gets initialized).
When calling
the execute() method we have to have our tests configured. But when I get
the tests and configure them with:
                Enumeration tests = getIndividualTests();
                while (tests.hasMoreElements())
                    JUnitTest test = (JUnitTest) tests.nextElement();
                    if (test.shouldRun(getProject())
                     && !theWrapper.isExcluded(test.getName()))
                        if (theWrapper.getToDir() != null)

I am no longer able to set them in the JUnitTask. The field tests is

    private Vector tests = new Vector();

and there is no setter for an individual test, or a vector of tests.

Please, can you look serious to this and supply a setter method for this.
This way I can configure
the tests and set them in the JUnitTask, and after that just call execute().

Thank you very much.

P.S. Please keep me in a CC, because I am not subscribed to the Ant
Developers' lists.

Regards, Petar!
Karlovo, Bulgaria.

EOOXML Objections

Public PGP Key at:
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611 

View this message in context:
Sent from the Ant - Dev mailing list archive at

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

View raw message