You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/01/07 05:13:53 UTC
DO NOT REPLY [Bug 25944] New: -
Using filter in copy task reports Inifinite loop in tokens.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25944>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25944
Using filter in copy task reports Inifinite loop in tokens.
Summary: Using filter in copy task reports Inifinite loop in
tokens.
Product: Ant
Version: 1.6.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: rburns@texas.net
>From tokens (tokens to be replaced):
PRODUCT_VERSION=6.2.1.4
PRODUCT_BUILD=6.5 (BLD_65036)
Replacement commands:
<copy todir="sometodir" overwrite="true">
<fileset dir="somefromdir" >
<include name="**/*.*" />
</fileset>
<filterset begintoken="6" endtoken="4">
<filter token=".2.1." value="${product.dottedbuildnum}" />
</filterset>
<filterset begintoken="6" endtoken=")">
<filter token=".5 (BLD_65036"
value="${product.majorrev}.${product.minorrev} (${build.number})" />
</filterset>
</copy>
Leads to incorrect resultant string - resultant string should be same format,
but different numbers - the actual string I get is the original strings with
the first and last tokens cut off. Ant 1.5.4 has no problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org