|
|
@@ -574,6 +574,15 @@ user defined values. |
|
|
|
<td vAlign=top>Properties file to take tokens from.</td> |
|
|
|
<td vAlign=top align="center">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td vAlign=top>Not applicable.</td> |
|
|
|
<td vAlign=top>propertiesResource</td> |
|
|
|
<td vAlign=top>Properties resource to take tokens from. |
|
|
|
Note this only works is you use the |
|
|
|
"convenience" <code><replacetokens></code> syntax. |
|
|
|
<em>since Ant 1.8.0</em></td> |
|
|
|
<td vAlign=top align="center">No</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td vAlign=top>User defined String.</td> |
|
|
|
<td vAlign=top>value</td> |
|
|
@@ -626,7 +635,19 @@ This will treat each properties file entry in sample.properties as a token/key p |
|
|
|
</filterreader> |
|
|
|
</filterchain> |
|
|
|
</loadfile> |
|
|
|
</filterchain> |
|
|
|
</pre></blockquote> |
|
|
|
|
|
|
|
This reads the properties from an Ant resource referenced by its id: |
|
|
|
<blockquote><pre> |
|
|
|
<string id="embedded-properties"> |
|
|
|
foo=bar |
|
|
|
baz=xyzzy |
|
|
|
</string> |
|
|
|
<loadfile srcfile="${src.file}" property="${src.file.replaced}"> |
|
|
|
<filterchain> |
|
|
|
<replacetokens propertiesResource="${ant.refid:embedded-properties}"/> |
|
|
|
</filterchain> |
|
|
|
</loadfile> |
|
|
|
</pre></blockquote> |
|
|
|
|
|
|
|
<h3><a name="stripjavacomments">StripJavaComments</a></h3> |
|
|
|