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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]