Thanks; I am aware that I could just keep the processing in ant; there are a couple of problems with your solution, that I see:
1) If I keep the file in the source directory, changing it wreaks havoc with source control - CM cannot tell if I meant to change it or not, and in a system such as Perforce, the file would be read-only in any event if I am not changing it. 2) The ant solution makes it very hard to ensure that the file gets added to the list of files that maven will compile That's why I want a plugin that does this the maven way. Thanks, Russ On Sep 30, 2013, at 10:50 AM, "Lyons, Roy" <[email protected]> wrote: > :) I have an obligatory recommendation. If nothing else, theres the > antrun plugin which will allow you to do that substitution as well. It > allows you to run ant functions within the pom. > > You may be able to just keep the files in your src/main/language folder, > and do a "<replace" function, pointing to that src/main/language folder. > > > Thanks, > > Roy Lyons > > > > > On 9/30/13 9:44 AM, "Russell Gold" <[email protected]> wrote: > >> Before I write this myselfÅ >> >> I am converting an ant build to maven. One of the steps processes a >> template file, using properties from a properties file to replace tokens >> and produce a java source file, which is then compiled. Is there an >> existing plugin which does this? The resource plugin can do the >> substitution, but will not mark the resultant file for compilation. It's >> not all that difficult to write, but one fewer plugin to maintain is a >> good thing. >> >> Thanks, >> Russ >> ----------------- >> Come read my webnovel, Take a Lemon <http://www.takealemon.com>, >> and listen to the Misfile radio play >> <http://www.fuzzyfacetheater.com/misfile/>! >> >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > ----------------- Come read my webnovel, Take a Lemon <http://www.takealemon.com>, and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>!
