MavenResourcesExecution How to Get as Variable Instead of Writing to A File?

╄→гoц情女王★ 提交于 2019-12-12 03:45:04

问题


I use that at 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 everyting into a file however I want to retrieve it as a variable instead of writing it into a file. How can I do it?


回答1:


I have implemented an interpolator with an interceptor and could retrieve the values of variables.



来源:https://stackoverflow.com/questions/14774667/mavenresourcesexecution-how-to-get-as-variable-instead-of-writing-to-a-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!