ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Definer.java
Date Mon, 09 Jul 2001 14:47:53 GMT
conor       01/07/09 07:47:53

  Modified:    src/main/org/apache/tools/ant/taskdefs Definer.java
  Log:
  Interim fix for Gump failure to build FOP. IN Gump's mode of operations
  ensures the system loader is always used.
  
  Revision  Changes    Path
  1.3       +7 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Definer.java
  
  Index: Definer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Definer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Definer.java	2001/07/05 12:27:40	1.2
  +++ Definer.java	2001/07/09 14:47:51	1.3
  @@ -96,12 +96,17 @@
               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
  
  
  

Mime
View raw message