You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Patrick (JIRA)" <ji...@apache.org> on 2009/01/27 18:27:05 UTC
[jira] Created: (IVY-1020) [copy] Infinite loop in tokens.
Currently known tokens :
[copy] Infinite loop in tokens. Currently known tokens :
--------------------------------------------------------
Key: IVY-1020
URL: https://issues.apache.org/jira/browse/IVY-1020
Project: Ivy
Issue Type: Bug
Components: Ant, Core
Environment: Win XP Professional, J2SDK 1.4.2_14, apache-ant 1.7.1
Reporter: Patrick
Priority: Blocker
This issue is happening when I try to run the sample below.
For some reason, when we have the same tag being replace twice or more times, for a given property, this does not work properly:
Follow a verbose message example:
[copy] Copying C:\FileWithTagToReplace.properties to C:\Temp\FileWithTagToReplace.properties
Replacing: @iis.host@ -> XXXX.apache.com
Replacing: @iis.port@ -> 80
Replacing: @iis.short.host@ -> XXXX
[copy] Infinite loop in tokens. Currently known tokens : [singlesignon.trustedservers, iis.host, iis.port, iis.short.host]
[copy] Problem token : @iis.port@ called from @iis.short.host@
Follow a sample:
build.xml:
<filter filtersfile="dev.properties" />
<copy todir="${dir.1}" overwrite="true" filtering="true">
<fileset dir="${build.path}/Web/"
includes="FileWithTagToReplace.properties">
<modified update="true"
seldirs="true"
cache="propertyfile"
algorithm="digest"
comparator="equal">
<param name="cache.cachefile" value="cache.properties"/>
<param name="algorithm.algorithm" value="MD5" />
</modified>
</fileset>
</copy>
dev.properties
iis.host=XXXX.apache.com
iis.short.host=XXXX
iis.port=80
singlesignon.trustedservers=@iis.host@\\:@iis.port@,@iis.short.host@\\:@iis.port@
FileWithTagToReplace.properties
xxxproperty=@singlesignon.trustedservers@
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IVY-1020) [copy] Infinite loop in tokens.
Currently known tokens :
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-1020.
--------------------------------
Resolution: Invalid
This seems a bug report for Ant, not for Ivy, please report it again at
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Ant
Maarten
> [copy] Infinite loop in tokens. Currently known tokens :
> --------------------------------------------------------
>
> Key: IVY-1020
> URL: https://issues.apache.org/jira/browse/IVY-1020
> Project: Ivy
> Issue Type: Bug
> Components: Ant, Core
> Environment: Win XP Professional, J2SDK 1.4.2_14, apache-ant 1.7.1
> Reporter: Patrick
> Priority: Blocker
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> This issue is happening when I try to run the sample below.
> For some reason, when we have the same tag being replace twice or more times, for a given property, this does not work properly:
> Follow a verbose message example:
> [copy] Copying C:\FileWithTagToReplace.properties to C:\Temp\FileWithTagToReplace.properties
> Replacing: @iis.host@ -> XXXX.apache.com
> Replacing: @iis.port@ -> 80
> Replacing: @iis.short.host@ -> XXXX
> [copy] Infinite loop in tokens. Currently known tokens : [singlesignon.trustedservers, iis.host, iis.port, iis.short.host]
> [copy] Problem token : @iis.port@ called from @iis.short.host@
> Follow a sample:
> build.xml:
> <filter filtersfile="dev.properties" />
> <copy todir="${dir.1}" overwrite="true" filtering="true">
> <fileset dir="${build.path}/Web/"
> includes="FileWithTagToReplace.properties">
> <modified update="true"
> seldirs="true"
> cache="propertyfile"
> algorithm="digest"
> comparator="equal">
> <param name="cache.cachefile" value="cache.properties"/>
> <param name="algorithm.algorithm" value="MD5" />
> </modified>
> </fileset>
> </copy>
> dev.properties
> iis.host=XXXX.apache.com
> iis.short.host=XXXX
> iis.port=80
> singlesignon.trustedservers=@iis.host@\\:@iis.port@,@iis.short.host@\\:@iis.port@
> FileWithTagToReplace.properties
> xxxproperty=@singlesignon.trustedservers@
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.