> Try this:
>
> project.publishClassLoader = new URLClassLoader(classpath as URL[],
> buildscript.classLoader)
Great, that works. Thanks.
> Other things I noticed:
> - You create such a class loader both in task "migrate" and in task
> "createPublishClassLoader"; not sure if that's intended.
I missed the opportunity to have 'migrate' depend on
'createPublishClassLoader'. I've changed that, although I'm not sure I
should keep 'migrate' since it's already been run so there's nothing
to migrate...
> - "project." is usually redundant in build scripts (but not in custom task
> classes)
Understood. It's there as an artifact of copying and pasting between
build script tasks and the custom task classes.
Thanks again for the help,
Peter
--
Peter Ledbrook
Grails Advocate
SpringSource - A Division of VMware
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email