On Tue, 13 Dec 2005, jim fuller <[EMAIL PROTECTED]> wrote: > Jonathan <[EMAIL PROTECTED]> wrote .. >> Hi. >> >> I'm writing an ant task that loads an external xml file. I want >> the user to be able to use standard ant properties in this file. >> Is there an easy way to pass the xml as a string to some method and >> have it return the xml as a string with any/all ant properties >> expanded? Basically i want to expand any/all properties in the >> file before my parser starts on it. > > its easy enough to reuse the loadfile + filterchain/replacetoken > code
Or make you task support filterchains. Ant's HEAD has a loadresource task which loads a property fom arbitrary resources (and supports filterchains). Strings and properties are resources in HEAD as well. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]