ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Problem in extending org.apache.tools.ant.taskdefs.Java class
Date Thu, 10 Aug 2006 18:46:22 GMT
Interesting. In what way does log4j conflict with this model?

Also, do you plan in sharing this work? It could be useful to the Ant
community at large. Thanks, --DD

On 8/9/06, Ben <ajoo.email@gmail.com> wrote:
> Suppose I have a directory tree
> /lib
>    /framework1
>        a-1.0.jar
>        x.jar
>        y.jar
>    /framework2
>       z.jar
>       a-2.0.jar
>
> a-1.0.jar and a-2.0.jar are different versions of the same library.
>
> A tree class loader will make sure that x.jar and y.jar use version
> 1.0, while z.jar use version 2.0.
>
> So, when I create a ClassLoader by saying:
> ClassLoader treeClassLoader = TreeClassLoaders.makeClassLoader(new File("lib"));
>
> The class loader will honor the tree structure and enforce precedence.
>
> I feel this way I can manage dependencies naturally in directories
> without explicitly specifying versions as in maven.
>
> Ben.
>
> ---------------------------------------------------------------------
> 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