Browse Source

take advantage of caching in Resources

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@806579 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
7fdc6df7cb
3 changed files with 3 additions and 0 deletions
  1. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/Concat.java
  2. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/PathConvert.java
  3. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java

+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/Concat.java View File

@@ -642,6 +642,7 @@ public class Concat extends Task implements ResourceCollection {
if (!(rc instanceof Resources)) { if (!(rc instanceof Resources)) {
Resources newRc = new Resources(); Resources newRc = new Resources();
newRc.setProject(getProject()); newRc.setProject(getProject());
newRc.setCache(true);
newRc.add(rc); newRc.add(rc);
rc = newRc; rc = newRc;
} }


+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/PathConvert.java View File

@@ -199,6 +199,7 @@ public class PathConvert extends Task {
private synchronized Resources getPath() { private synchronized Resources getPath() {
if (path == null) { if (path == null) {
path = new Resources(getProject()); path = new Resources(getProject());
path.setCache(true);
} }
return path; return path;
} }


+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/optional/junit/BatchTest.java View File

@@ -54,6 +54,7 @@ public final class BatchTest extends BaseTest {
*/ */
public BatchTest(Project project) { public BatchTest(Project project) {
this.project = project; this.project = project;
resources.setCache(true);
} }


/** /**


Loading…
Cancel
Save