From c089057ee8af3dedf824123633017028d368f205 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 27 Apr 2007 14:17:56 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/types/resources/Tokens.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/types/resources/Tokens.java b/src/main/org/apache/tools/ant/types/resources/Tokens.java index 3d5176e02..a60d790ad 100644 --- a/src/main/org/apache/tools/ant/types/resources/Tokens.java +++ b/src/main/org/apache/tools/ant/types/resources/Tokens.java @@ -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);