ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r533112 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Tokens.java
Date Fri, 27 Apr 2007 14:17:57 GMT
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


Mime
View raw message