Well, I figured out the problem (why it looked like it wasn't working and then 
it worked fine in the quick sample files I made)

I was changing a (set of) maven pom.xml files, and some had :
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

and some had simply
<project>

For some reason, a check for /project found the second, but not the first.  I 
need to learn XPath better I guess!

Thanks,

Dana Lacoste

From: Lacoste, Dana (TSG Software San Diego)
Sent: Friday, May 29, 2009 11:08 AM
To: xmltask-users@lists.sourceforge.net
Subject: Re: [Xmltask-users] Using replace on multiple files?

You mean:

<xmltask source="*.xml" todir="."> ?

Yes, this works fine.

ARGH, so does source="**/file.xml" (now, anyways)

Why didn't this work yesterday????

so, to be clear, this works now :

   <xmltask todir=".">
      <fileset dir=".">
        <include name="**/file.xml" />
      </fileset>
      <replace path="/path/to/text()" withText="DanaTest"/>
    </xmltask>

I'm sorry for asking questions about something that works.  I must've had a 
typo somewhere or something!

Thanks again,

Dana Lacoste
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to