ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FW: [maven2] Anything Groovy in Maven2?
Date Tue, 04 May 2004 08:52:27 GMT
On Tue, 4 May 2004, Vincent Massol <vmassol@pivolis.com> wrote:
>> From: Stefan Bodewig [mailto:bodewig@apache.org]

>> 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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message