Skip to content

[MRRESOURCES-71] Replace properties in file and directory names during resource bundle processing #117

@jira-importer

Description

@jira-importer

Fabien Crespel opened MRRESOURCES-71 and commented

To make resource bundles more useful in the context of the project in which they are processed, property placeholders in file and directory names should be replaced by their value. For example, the resource bundle could contain a directory named \_\_artifactId\_\_, which would be replaced by the actual artifactId of the project using this bundle as part of the process-remote-resources goal. My personal use case is for making a Tomcat CATALINA_BASE resource bundle, which I could optionally use in J2EE-based projects for easier "standalone" packaging.

The attached patch adds this simple new feature to ProcessRemoteResourcesMojo, and is based on the work done in the archetype plugin. I have successfully tested it on some of my projects, but haven't made a proper testcase yet (waiting for feedback first).

Please let me know what you think of this and whether it could be included in the current trunk. :)


Affects: 1.6.0

Attachments:

Issue Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions