carmichs wrote:
> 
> Hi,
> 
> I am trying to figure out if maven or any plugins have the ability to
> insert source code into a java source file.  For example,  I want to
> create a source file template similiar to the one below where the
> placeholders get populated in the template file at project creation time,
> by values defined in a property file...  
> 
> public class @[EMAIL PROTECTED] implements @[EMAIL PROTECTED]@[EMAIL 
> PROTECTED]
>     private static Logger log = Logger.getLogger(@[EMAIL PROTECTED]);
> 
>     // rest of template code goes here....
> }
> 
> Thanks!
> 
> Steve
> 

Good day to you, Steve,

If you simply want to replace tokens with corresponding values, you may want
to try out maven-resources-plugin ([1]).

Btw, [1] has not yet been released. If you have any comments about it,
please feel free to tell us about it so that we can incorporate them.

Thanks,
Franz

[1]
http://people.apache.org/~aramirez/maven-resources-plugin/examples/resource-directory.html
-- 
View this message in context: 
http://www.nabble.com/Inserting-code-into-source-file-tf2291740.html#a6366598
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to