From 7e0bd5c99af1151c5d820b621cb058376ba44422 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 31 Dec 2008 22:31:34 +0000 Subject: [PATCH] Drive by unwrapping. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5611 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/tools/InvocationTask.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/presents/tools/InvocationTask.java b/src/java/com/threerings/presents/tools/InvocationTask.java index 4f408e65a..b29c8e4ae 100644 --- a/src/java/com/threerings/presents/tools/InvocationTask.java +++ b/src/java/com/threerings/presents/tools/InvocationTask.java @@ -334,12 +334,11 @@ public abstract class InvocationTask 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); - // 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 TransportHint + // 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 + // TransportHint ((AntClassLoader)_cloader).setParent(getClass().getClassLoader()); }