Have you tried modifying the attr immediately afterwards via (say) the
<attr> subtask ?
On Tue, September 18, 2012 13:13, Horacio Hoyos Rodriguez wrote:
> Hello,
>
>
>
> I have the following Xmltask:
>
>
>
> <xmltask
>
> source=
> "${ivy.repo}/${module.module}/${module.revision}/ivy-${module.revision}.xml"
>
> dest=
> "${ivy.repo}/${module.module}/${module.revision}/ivy-${module.revision}.xml"
>>
>
> <insert path="/ivy-module/dependencies/dependency"
>
> position="under">
>
> <![CDATA[
>
> <dependency org=""
> name="]]>${dependency.module}"
> <![CDATA[rev="]]>${dependency.revision}<![CDATA["
> conf="compile->default"/>
>
> ]]>
>
> </insert>
>
> </xmltask>
>
>
>
> In the CDATA inserted I need the conf=compile->default as it is (Ivy
> repository file), however after running the task, the insert is done
> correctly, but the > character is replaced (the result):
>
>
>
> <dependency conf="compile->default" name="org.eclipse.emf.ecore" org=""
> rev="2.8.0"/>
>
>
>
> I guess by default you scape < and > to enforce well formatted xmls, but
> I
> think they should not be replaced if inside a string.
>
>
>
> Is there any workaround or fix? Do I have to provide my own outputter
> ??!!??
>
>
>
> Regards,
>
>
>
> Horacio Hoyos Rodríguez
>
> EngD Student
>
> University of York
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xmltask-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltask-users