Re: String substitution in resource filtering

2007-05-13 Thread Wayne Fay
If you seriously are interested in this, you'll need to file a JIRA Enhancement Request against the Maven project. Otherwise, there's a 99% chance this request will fall through the cracks. (And even if you do file it, there's no telling if someone will pick it up and decide to implement it.)

Re: String substitution in resource filtering

2007-05-13 Thread Jo Vandermeeren
Yeah.. resource filtering could be more useful in lots of ways.. But until then, you could easily write your own mojo to do this and bind it to the desired phase. Cheers Jo On 5/13/07, Wayne Fay [EMAIL PROTECTED] wrote: If you seriously are interested in this, you'll need to file a JIRA

String substitution in resource filtering

2007-05-12 Thread Farrukh S. Najmi
I need to do resource filtering that simply needs to replace an existing string with another. There are no variable to substitute. Can someone kindly share an example of how to do this. Here is an example: Original File: ?xml version=1.0? !DOCTYPE hibernate-mapping PUBLIC

Re: String substitution in resource filtering

2007-05-12 Thread Manos Batsis
Maybe a better way exists, but would probably use Ant code (i.e. the replace task) through the Maven Antrun plugin in a phase like process-resources. hth, Manos Farrukh S. Najmi wrote: I need to do resource filtering that simply needs to replace an existing string with another. There are

Re: String substitution in resource filtering

2007-05-12 Thread Andrew Williams
Is there any reason you cannot replace the strings with, say ${hibernate.dtdname} and ${hibernate.dtdurl} and replace both of those using filters? That is, I think, the correct way... On 12 May 2007, at 07:12, Farrukh S. Najmi wrote: I need to do resource filtering that simply needs to

Re: String substitution in resource filtering

2007-05-12 Thread Farrukh S. Najmi
Unfortunately my build process takes the output of a pre-existing ant build process in its own build so that is not an option. It would be nice to have in maven regexp replacement option in maven filtering similar to: http://ant.apache.org/manual/OptionalTasks/replaceregexp.html Maven dev team