On 2009-08-25, Hans Deragon <h...@deragon.biz> wrote:

> Why the paths passed to ant with -lib are not found in the CLASSPATH?

Because -lib doesn't work that way 8-)

Ant's launcher constructs a new classloader containing the stuff from
-lib and loads Ant's Main class using that classloader.

> How can I fix this?

If it must be the system classloader that you use, use CLASSPATH
directly.  Most likely you could use the classloader that loaded your
task instead of the system classloader, though.  This one should contain
all your -lib parts.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to