On Tue, 4 May 2004, Vincent Massol <[EMAIL PROTECTED]> wrote:
>> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
>> If the only embedder of Ant tasks you know is Ant, it is hard to
>> see that you are creating a problem for other embedders.
>
> True. But you could easily create a sample project in Ant CVS that
> would use Ant task in embedded mode. It would serve as a functional
> test bed.
Coding it is the easy part. Imagining what could lead to problems and
thus writing the functional tests is what we are (at least I am)
lacking.
> However, the code is:
>
> private int executeInVM(JUnitTest arg) throws BuildException {
> [...]
> try {
> log("Using System properties " + System.getProperties(),
> Project.MSG_VERBOSE);
> createClassLoader();
> if (classLoader != null) {
> classLoader.setThreadContextLoader();
> }
>
> Thus the AntClassloader is created in all cases.
No. createClassloader leaves classLoader set to null if no user
classpath has been specified.
> In any case, thanks for your feedback.
You're welcome.
> I'll start using Ant tasks to write maven2 plugins soon. If I have
> problems, I'll contact the list again.
Please do.
Cheers
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]