Hi Russel, Take a look at the templating plugin provided by Codehaus: http://mojo.codehaus.org/templating-maven-plugin/
Its flagged as pre-release but it worked fine for me. In my case, I needed to insert the filename of a resolved dependency (a war file) into a configuration file I generated for an assembly. I wrote a plugin to generate properties ".filename" and ".version" for each dependency, just so I could use those properties in my templates. http://artifactpropertyplugin.sourceforge.net/ Hope this helps, Richard -----Original Message----- From: Russell Gold [mailto:[email protected]] Sent: Monday, September 30, 2013 10:45 AM To: Maven Users List Subject: Looking for class property-substitution plugin 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]
