Author: bodewig
Date: Fri Aug 21 14:57:24 2009
New Revision: 806579

URL: http://svn.apache.org/viewvc?rev=806579&view=rev
Log:
take advantage of caching in Resources

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
    
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java?rev=806579&r1=806578&r2=806579&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Concat.java Fri Aug 
21 14:57:24 2009
@@ -642,6 +642,7 @@
         if (!(rc instanceof Resources)) {
             Resources newRc = new Resources();
             newRc.setProject(getProject());
+            newRc.setCache(true);
             newRc.add(rc);
             rc = newRc;
         }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java?rev=806579&r1=806578&r2=806579&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java 
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/PathConvert.java Fri 
Aug 21 14:57:24 2009
@@ -199,6 +199,7 @@
     private synchronized Resources getPath() {
         if (path == null) {
             path = new Resources(getProject());
+            path.setCache(true);
         }
         return path;
     }

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java?rev=806579&r1=806578&r2=806579&view=diff
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java
 Fri Aug 21 14:57:24 2009
@@ -54,6 +54,7 @@
      */
     public BatchTest(Project project) {
         this.project = project;
+        resources.setCache(true);
     }
 
     /**


Reply via email to