let me clean it up. You should be able to copy paste this directly to your
system and try it. For some reason, the class isn't found. I tried this
with the Base64 example Roger posted and was able to get a Base64 class
lookup (Class.forName) to work properly. So it seems there is something odd
about the Xerces class....
task hello {
doLast {
println 'Hello world!'
Class testClass =
Class.forName("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl")
assert testClass: "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
not found"
println "found"
}
}
Have you tried using the context class loader? Might be worth a try:
Thread.currentThread().getContextClassLoader().loadClass("...");
Cheers,
Marco
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email