Update attribute value using wildcards

I would have thought that if you didn’t provide a destination, the xmltask would modify the original file and replace it, but apparently this is not the case as the code below does not work:

<xmltask source="**\plugin.xml"> 
    <attr path="plugin" attr="version" value="12345" /> 
</xmltask>

      

If I specify a destination, I get the error "Multiple inputs, but only one destination":

<xmltask source="**\plugin.xml" dest="**\plugin.xml"> 
    <attr path="plugin" attr="version" value="12345" /> 
</xmltask>

      

How can I get this to work with wildcards? Is it possible?

0


source to share


1 answer


Instead of specifying a single output file with, dest

specify an output directory with todir

:



<xmltask source="**\plugin.xml" todir="output"> 
   <attr path="plugin" attr="version" value="12345" /> 
</xmltask>

      

+1


source







All Articles