Browse Source

Interim fix for Gump failure to build FOP. IN Gump's mode of operations

ensures the system loader is always used.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269304 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
5826ef1968
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/main/org/apache/tools/ant/taskdefs/Definer.java

+ 7
- 2
src/main/org/apache/tools/ant/taskdefs/Definer.java View File

@@ -96,12 +96,17 @@ public abstract class Definer extends Task {
throw new BuildException(msg);
}
try {
boolean systemFirst = false;
String bscp = project.getProperty("build.sysclasspath");
if (bscp != null && bscp.equals("only")) {
systemFirst = true;
}
ClassLoader loader = null;
AntClassLoader al = null;
if (classpath != null) {
al = new AntClassLoader(project, classpath, false);
al = new AntClassLoader(project, classpath, systemFirst);
} else {
al = new AntClassLoader(project, Path.systemClasspath, false);
al = new AntClassLoader(project, Path.systemClasspath, systemFirst);
}
// need to load Task via system classloader or the new
// task we want to define will never be a Task but always


Loading…
Cancel
Save