Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:any
-
Number of attachments :
Description
Functionality that checks if after filtering there are remaining placeholders that were not replaced during filtering.
Example:
template.properties:
log.level=@log.level@ hibernate.show-sql=@hibernate.show-sql@
filter file my.properties:
log.level=debug
target file:
log.level=debug hibernate.show-sql=@hibernate.show-sql@
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:hibernate.show-sql=@hibernate.show-sql@ 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>