ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Preventing Parent Classloading
Date Fri, 10 Oct 2003 15:00:12 GMT
> -----Original Message-----
> From: Upayavira []
> Dominique Devienne wrote:
> >Here's something that might work. The code you sketched below, which only
> >depends on Cocoon classes, could be make part of Cocoon itself in an
> >existing or new JAR from Cocoon/WEB-INF/lib, as a new main() entry point.
> >
> >This way, you could then just use the Java task within your own task (do
> >this all the time in my own custom task), calling that entry point, and
> >setting the classpath explicitly. Play as well with the attributes to
> >include or not the system and Ant runtime.
> >
> >
> The only problem I can forsee with this is that I'll already have the
> configuration of the task read into a DOM object, which I'll want to
> pass to the main() method. But I suspect the Java task will only pass
> Strings. Am I correct here?

Well, yes. But you can always serialize your DOM tree to disk, and pass the
name of the temp file to the main as an arg. If Java cannot sort the
classloader stuff in non-forking mode, then you can still fork it, and this
time it should work. --DD

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

View raw message