You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2015/12/05 16:15:11 UTC

[jira] [Closed] (MRESOURCES-163) Filtering: check if there are any placeholders that were not substituted

     [ https://issues.apache.org/jira/browse/MRESOURCES-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise closed MRESOURCES-163.
------------------------------------------
    Resolution: Incomplete
      Assignee: Karl Heinz Marbaise

Will never accept jar files instead of source code patches. If you like you can add the appropriate source code patch based on the current state of svn trunk and reopen the issue.

> Filtering: check if there are any placeholders that were not substituted
> ------------------------------------------------------------------------
>
>                 Key: MRESOURCES-163
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-163
>             Project: Maven Resources Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.5
>         Environment: any
>            Reporter: Benjamin Walther Büel
>            Assignee: Karl Heinz Marbaise
>         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}}:
> {noformat} 
> log.level=@log.level@
> hibernate.show-sql=@hibernate.show-sql@
> {noformat}
> filter file {{my.properties}}:
> {noformat}
> log.level=debug
> {noformat}
> target file:
> {noformat} 
> log.level=debug
> hibernate.show-sql=@hibernate.show-sql@ 
> {noformat} 
> With the attached extended resources&filter plugins will throw:
> {noformat}
> 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).
> {noformat}
> Usage:
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)