ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject Error found in documentation of ReplaceTokens (?)
Date Mon, 27 Jan 2003 12:41:58 GMT
The example source for ReplaceTokens
(docs/manual/CoreTypes/filterchain.html#replacetokens)
gives as an example for use

<tstamp/>
<loadfile srcfile="${src.file}" property="${src.file.replaced}">
  <filterchain>
    <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens">
      <param type="token" name="DATE" value="${TODAY}"/>
    </filterreader>
  </filterchain>
</loadfile>

But the class ReplaceTokens doesn´t support the <param>.

Output of Ant:

BUILD FAILED
file:C:/temp/build.xml:3: Could not create task or type of type: param.


ReplaceTokens has no addXXX or createXXX methods for param, only for
<token>.
Base class BaseParamFilterReader neither (only a setParameters(Parameter[]).
(verified with java and html source from 14.Jan 2003)



Jan Matèrne

Mime
View raw message