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 2006/05/12 11:17:27 UTC

DO NOT REPLY [Bug 39568] New: - replacevalue/replacetoken can't be used as nested element of replacefilter

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39568>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39568

           Summary: replacevalue/replacetoken can't be used as nested
                    element of replacefilter
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: achepati67@yahoo.es


On the documentation of replace target we have:

Note: It is possible to use either the token/<replacetoken> and 
value/<replacevalue> attributes/elements, the nested replacefilter elements, or 
both in the same operation. 

but when I want to use replacevalue or replacetoken on replacefilter I get the 
following error:

BUILD FAILED
P:\LRA\build.xml:1745: Class 
org.apache.tools.ant.taskdefs.Replace$Replacefilter doesn't support the 
nested "replacevalue" element.

Total time: 13 seconds

I am using the following invokation:

<replace file="${sql.dir}/oracle/lra-create-tables-oracle.sql">
  <replacefilter
    token="create sequence lra_contract_id_seq;">
    <replacevalue>![CDATA[CREATE SEQUENCE lra_contract_id_seq
	START WITH 1
	INCREMENT BY 1
	CACHE 20;]]
    </replacevalue>
  </replacefilter>
</replace>

I have tested it also usint replacetoken with the same result.

Another comment, the documentation stays that the token attribute should be 
required, which is a contradiction with the Note about nested element can be 
used on  replacevalue.

Thanks in advance,

David

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org