You can't escape quote in XML like that. Try replacing your \" by "
--DD -----Original Message----- From: Tara Hernandez [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 1:41 PM To: Ant Users List Subject: Re: Using " in replaceregexp Er: error is: BUILD FAILED file:E:/a20/modules/analytics/build.xml:272: Element type "replaceregexp" must be followed by either attribute specifications, ">" or "/>". Tara Hernandez wrote: > I'm trying to find the last line of a structure, append a "," then add > a new line. This code is largely replicated from a java class that also > uses an ORO jar (though not the jakarta one) to do the same thing, so I > was hoping it would be a pretty easy conversion. > > However, Ant blows chunks if I try to use quotes as part of the > expression itself. I've tried various methods of escaping them to no > luck. Anybody have any ideas? > > <replaceregexp file="${basedir}/config/env.dna"> > <regexp expression="\"WEBSTORE_SERVER\" String \"(.*)\"$"/> > <substitution expression="\"WEBSTORE_SERVER\" String \"$1\",\n > \"NEW_ENV\" String \"new_env.dna\""/> > </replaceregexp> > > -Tara > > -- > "I was gratified to be able to answer promptly, and I did. I said I > didn't know" > > -Mark Twain > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- "I was gratified to be able to answer promptly, and I did. I said I didn't know" -Mark Twain -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
