- Prefer reading from the created classpath instead of the parent classpath

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6216 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Mark Johnson
2010-10-19 23:47:24 +00:00
parent 20d97bf26a
commit e96310b43b
@@ -71,7 +71,7 @@ public abstract class GenTask extends Task
/** Configures our classpath which we'll use to load service classes. */
public void setClasspathref (Reference pathref)
{
_cloader = ClasspathUtils.getClassLoaderForPath(getProject(), pathref);
_cloader = ClasspathUtils.getClassLoaderForPath(getProject(), pathref, true);
// set the parent of the classloader to be the classloader used to load this task, rather
// than the classloader used to load Ant, so that we have access to Narya classes like