MavenResourcesExecution How to get a variable instead of writing to a file?

I use this in my plugin:

MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution(resources, outputFileDirectory, project, encoding, buildFilters, Collections.<String>emptyList(), session); try { mavenResourcesFiltering.filterResources(mavenResourcesExecution); } catch (MavenFilteringException e) { e.printStackTrace(); } 

and it writes everything to a file, but I want to get it as a variable instead of writing it to a file. How can i do this?

0
source share
1 answer

I implemented an interpolator with an interceptor and was able to get the values ​​of the variables.

0
source

All Articles