Browse Source

Bind string resources to projects. There's no bugrep with this, but it is good practise

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533112 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 18 years ago
parent
commit
c089057ee8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/types/resources/Tokens.java

+ 3
- 1
src/main/org/apache/tools/ant/types/resources/Tokens.java View File

@@ -71,7 +71,9 @@ public class Tokens extends BaseResourceCollectionWrapper {
ArrayList result = new ArrayList();
try {
for (String s = tokenizer.getToken(rdr); s != null; s = tokenizer.getToken(rdr)) {
result.add(new StringResource(s));
StringResource resource = new StringResource(s);
resource.setProject(getProject());
result.add(resource);
}
} catch (IOException e) {
throw new BuildException("Error reading tokens", e);


Loading…
Cancel
Save