You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by st...@apache.org on 2007/04/27 16:17:57 UTC

svn commit: r533112 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java

Author: stevel
Date: Fri Apr 27 07:17:56 2007
New Revision: 533112

URL: http://svn.apache.org/viewvc?view=rev&rev=533112
Log:
Bind string resources to projects. There's no bugrep with this, but it is good practise

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java?view=diff&rev=533112&r1=533111&r2=533112
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java Fri Apr 27 07:17:56 2007
@@ -71,7 +71,9 @@
         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);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org