maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject Re: Maven replacer plugin
Date Wed, 09 May 2012 05:19:10 GMT
Hi,
> I want to replace the code snippet between two custom tag (@Start, @End) with
> empty tag.
>
> public class MyClass{
> private String name;
> private String age;
>
> @Start
> private String address;
> private String phoneNumber;
> @End
>
> }
> These tags are available in multiple files.

Why not. Put the replacer plugin into the generate-sources or 
process-sources phase and it should be working. The only problem you 
have to which location you put the changed files and get them compiled. 
May be you can use the buildhelper-maven-plugin to add a different 
location afterwards (for example target/replaced-files)


Kind regards
Karl-Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 W├╝rselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message