ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Error found in documentation of ReplaceTokens (?)
Date Mon, 27 Jan 2003 12:44:35 GMT
Sorry, my mistake.
I had a <param> at the wrong place in the build.xml ...


Jan Matèrne

> -----Ursprüngliche Nachricht-----
> Von:	Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Gesendet am:	Montag, 27. Januar 2003 13:42
> An:	ant-dev@jakarta.apache.org
> Betreff:	Error found in documentation of ReplaceTokens (?)
> 
> 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 << Datei: ATT129571.txt >> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message