Re: Need Maven example of ant replace task please...

2005-08-23 Thread Mick Knutson
ck Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) From: Thomas Van de Velde <[EMAIL PROTECTED]> Reply-To: "Maven Users List" To: Maven Users List Subject: Re: Need Maven example of

Re: Need Maven example of ant replace task please...

2005-08-23 Thread Thomas Van de Velde
And you should consider using a PropertiesPlaceHolder to externalize those setting in a properties file and not run a filter directly on an application context. Your properties file can then be place in your resources folder and copied to your classpath. Cheers, Thomas On 8/23/05, Kenney West

RE: Need Maven example of ant replace task please...

2005-08-23 Thread Kenney Westerhof
On Tue, 23 Aug 2005, Mick Knutson wrote: You're replacing the original source files, after they're copied to the webapp dir, so this is not going to work. You want to have a postGoal on war:war-resources, and use ${maven.war.webapp.dir} as a base dir (which is target//) and replace the files ther

RE: Need Maven example of ant replace task please...

2005-08-23 Thread Mick Knutson
OK, I found a couple of things, but I need to do the following: I have an xml configuration file from Spring, that I need to replace a token in, depending upong the type of build i.e: "maven.target.build=jboss", or "maven.target.build=was51" I want to replace this token only when I add it to