You need to specify the corresponding source file to read from. XMLTask
reads from a file, amends it, and then writes it out.
On Tue, September 18, 2007 22:16, broken connection wrote:
> Hi Friends,
> I have a very simple problem and google led me to XMLtask and it's 3-4
> hours now but I am still not able to resolve my problem.
>
> I have some mime-mappings that i need to add to an existing web.xml file
> using ANT scripts. Searching on google, I came across XMLtask and wrote
> this
> task:
>
>
> <target name="mimemappings">
> <xmltask dest="${tomcat.directory}\conf\web.xml" report="true">
> <insert path="/web-app/mime-mapping" position="before">
> <![CDATA[
> <mime-mapping>
> <extension>XYZ</extension>
> <mime-type>application/x-msdownload</mime-type>
> </mime-mapping>
> ]]>
> </insert>
> </xmltask>
> </target>
>
> But when I run="1.0" encoding="UTF-8"?>
>
> Can someone please tell me why it's not appending that mime type to the
> existing web.xml and wiping off everything or how to accomplish
> this.Yourinput would be greatly appreciated.
>
> Thanks
> Mick
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> Xmltask-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xmltask-users
>
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Xmltask-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltask-users