Drive by unwrapping.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5611 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -334,12 +334,11 @@ public abstract class InvocationTask extends Task
|
|||||||
/** Configures our classpath which we'll use to load service classes. */
|
/** Configures our classpath which we'll use to load service classes. */
|
||||||
public void setClasspathref (Reference pathref)
|
public void setClasspathref (Reference pathref)
|
||||||
{
|
{
|
||||||
_cloader = ClasspathUtils.getClassLoaderForPath(
|
_cloader = ClasspathUtils.getClassLoaderForPath(getProject(), pathref);
|
||||||
getProject(), pathref);
|
|
||||||
|
|
||||||
// set the parent of the classloader to be the classloader used to load this task,
|
// set the parent of the classloader to be the classloader used to load this task, rather
|
||||||
// rather than the classloader used to load Ant, so that we have access to Narya
|
// than the classloader used to load Ant, so that we have access to Narya classes like
|
||||||
// classes like TransportHint
|
// TransportHint
|
||||||
((AntClassLoader)_cloader).setParent(getClass().getClassLoader());
|
((AntClassLoader)_cloader).setParent(getClass().getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user