Hi, I am having an issue where I want to make use of the xmltask uncomment feature.
I have something of the following:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="someId" blah blah blah>
<!-- Uncomment this filter when deploying to an SSO environment
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"
<xmltask source="WebContent/WEB-INF/web.xml" dest="D:/deployment/web.xml" report="true">
<uncomment path="/web-app/comment()" />
I am able to successfully generate the new web.xml file in the given directory. It reads the old one in, and writes the new one to the given dest directory.
The problem is, it's not removing the comments where I said to remove them at. I know it has something to do with the path of the uncomment itself. I
get no error, it simply never removes the comment. It is coming off of the root 'web-app' element inside
of the web.xml file but according to the documentation,
I should be able to identify which comment in the document that I want to remove by comment()[index].
Any and all help that anyone could suggest as to what I am doing wrong would greatly be appreciated...
Thank you, dan