You could also look at DefaultMavenResourcesFiltering
<http://maven.apache.org/shared/maven-filtering/apidocs/org/apache/maven/shared/filtering/DefaultMavenResourcesFiltering.html>
for
an example. I think this is still using plexus so you'll have to have the
component.xml iirc that is needed for components.

On Tue, Jan 12, 2016 at 5:33 PM, Baptiste Mathus <m...@batmat.net> wrote:

> In general, though it would surely work too, better avoid using
> maven-antrun-plugin.
> Maven is about standardizing your build process, using antrun is gonna add
> issues with IDEs and so on.
>
> Anyway, what you ask for doesn't seem to me to require custom filtering.
> '@' is a standard delimiter (see
>
> http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#delimiters
> ),
> so it should work out of the box.
>
> Just enable filtering on the resources folders you want and you should be
> done.
>
> Cheers
>
>
> 2016-01-12 23:26 GMT+01:00 Matt Benson <gudnabr...@gmail.com>:
>
> > If you just want to get it done, use the maven-antrun-plugin with Ant
> > filtersets.
> >
> > Matt
> >
> > On Tue, Jan 12, 2016 at 4:14 PM, Thomas Sundberg <t...@kth.se> wrote:
> > > Hi!
> > >
> > > I need to be able to filter files where the values to replace are
> defind
> > as
> > >
> > > @aPlaceHolderThatNeedToBeSubstituted@
> > >
> > > Does anyone know of a good, working example where a custom resource
> > > filter is implemented?
> > >
> > > I had a look at
> > >
> >
> http://maven.apache.org/plugins/maven-resources-plugin/examples/custom-resource-filters.html
> > > and it is a bit sketchy. A complete, annotated example would be nice
> > > where all details needed to implement this interface
> > > MavenResourcesFiltering are shared.
> > >
> > > A Git repo to clone would be the most awesome tip I can think of.
> > >
> > > Cheers,
> > > Thomas
> > >
> > > --
> > > Thomas Sundberg
> > > M. Sc. in Computer Science
> > >
> > > Mobile: +46 70 767 33 15
> > > Blog: http://thomassundberg.wordpress.com/
> > > Twitter: @thomassundberg
> > >
> > > Better software through faster feedback
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>

Reply via email to