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, 06 Aug 2001 09:59:52 GMT
conor       01/08/06 02:59:52

  Modified:    src/main/org/apache/tools/ant/taskdefs Definer.java
  Log:
  Provide access to old behaviour for those tasks that rely on it, such
  as Anakia
  
  Revision  Changes    Path
  1.7       +8 -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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Definer.java	2001/07/18 08:06:35	1.6
  +++ Definer.java	2001/08/06 09:59:51	1.7
  @@ -73,7 +73,13 @@
       private Path classpath;
       private File file;
       private String resource;
  +    private boolean reverseLoader = false;
   
  +    public void setReverseLoader(boolean reverseLoader) {
  +        this.reverseLoader = reverseLoader;
  +        log("The reverseloader attribute is DEPRECATED. It will be removed", Project.MSG_WARN);
  +    }
  +    
       public void setClasspath(Path classpath) {
           if (this.classpath == null) {
               this.classpath = classpath;
  @@ -179,9 +185,9 @@
       private AntClassLoader createLoader() {
           AntClassLoader al = null;
           if (classpath != null) {
  -            al = new AntClassLoader(project, classpath);
  +            al = new AntClassLoader(project, classpath, !reverseLoader);
           } else {
  -            al = new AntClassLoader(project, Path.systemClasspath);
  +            al = new AntClassLoader(project, Path.systemClasspath, !reverseLoader);
           }
           // 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