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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to