[ 
https://jira.codehaus.org/browse/MNG-5274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MNG-5274:
--------------------------------

    Description: 
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}

  was:
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>

    
> 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
>    Affects Versions: 2.5
>         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}}:
> {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 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


Reply via email to