Benjamin Walther Büel created MNG-5274:
------------------------------------------
Summary: Filtering: check if there are any placeholders that were
not substituted
Key: MNG-5274
URL: https://jira.codehaus.org/browse/MNG-5274
Project: Maven 2 & 3
Issue Type: New Feature
Components: General
Affects Versions: 3.0.4, 3.0.3, 3.0.2, 3.0.1, 3.0
Environment: any
Reporter: Benjamin Walther Büel
Attachments: MavenExtension-checkForPlaceholders.zip,
maven-filtering-ext-1.0.pom
Functionality that checks if after filtering there are remaining placeholders
that were not replaced during filtering.
Example:
template.properties:
[email protected]@
[email protected]@
filter file my.properties:
log.level=debug
target file:
log.level=debug
[email protected]@
With the attached extended resources&filter plugins will throw:
Failed to execute goal
org.apache.maven.plugins:maven-resources-plugin-ext:2.5:copy-resources
(copy-resources) on project foo: File server.properties
line:[email protected]@ contains one or more placeholders
not replaced by filter(s).
Usage:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin-ext</artifactId>
<version>2.5</version>
<configuration>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<outputDirectory>target/classes</outputDirectory>
<checkFilterPlaceholders>true</checkFilterPlaceholders>
</configuration>
</plugin>
</plugins>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira