On Tue, 10 Jan 2006, Michael Alexander <[EMAIL PROTECTED]> wrote: > I want to be able to define task's that use either the axis-1_1 or > the axis-1_2_1 jars depending upon the value of a property. The > intent is to avoid having users explicitly set their CLASSPATH > before invoking the build.
In general, this works. But you need to check very careful which classes are where. If your task class can be loaded in a classloader higher up in the classloader hierarchy (like CLASSPATH or ANT_HOME/lib) then your classpathref will simply get ignored. Read the FAQ entry <http://ant.apache.org/faq.html#delegating-classloader> for more details. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]