You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sergey Zakusov (JIRA)" <ji...@codehaus.org> on 2012/01/12 12:41:02 UTC

[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Sergey Zakusov created MRESOURCES-156:
-----------------------------------------

             Summary: Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
                 Key: MRESOURCES-156
                 URL: https://jira.codehaus.org/browse/MRESOURCES-156
             Project: Maven 2.x Resources Plugin
          Issue Type: Bug
            Reporter: Sergey Zakusov
            Priority: Trivial


Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below:

<project>
  ...
  <build>
    ...
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>**/*.xml</include>
        </includes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>false</filtering>
        <excludes>
          <exclude>**/*.xml</exclude>
        </excludes>
      </resource>
      ...
    </resources>
    ...
  </build>
  ...
</project>


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

        

[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Posted by "Sergey Zakusov (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRESOURCES-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Zakusov closed MRESOURCES-156.
-------------------------------------

    Resolution: Not A Bug
    
> Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> --------------------------------------------------------------------------------------------
>
>                 Key: MRESOURCES-156
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-156
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>            Reporter: Sergey Zakusov
>            Priority: Trivial
>
> Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below:
> <project>
>   ...
>   <build>
>     ...
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>**/*.xml</include>
>         </includes>
>       </resource>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>false</filtering>
>         <excludes>
>           <exclude>**/*.xml</exclude>
>         </excludes>
>       </resource>
>       ...
>     </resources>
>     ...
>   </build>
>   ...
> </project>

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

        

[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRESOURCES-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288159#comment-288159 ] 

Dennis Lundberg commented on MRESOURCES-156:
--------------------------------------------

Hi,

I'm sorry but I don't understand what it is that is wrong with the example.
Can you explain more?
                
> Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> --------------------------------------------------------------------------------------------
>
>                 Key: MRESOURCES-156
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-156
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>            Reporter: Sergey Zakusov
>            Priority: Trivial
>
> Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below:
> <project>
>   ...
>   <build>
>     ...
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>**/*.xml</include>
>         </includes>
>       </resource>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>false</filtering>
>         <excludes>
>           <exclude>**/*.xml</exclude>
>         </excludes>
>       </resource>
>       ...
>     </resources>
>     ...
>   </build>
>   ...
> </project>

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

        

[jira] (MRESOURCES-156) Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

Posted by "Sergey Zakusov (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRESOURCES-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288161#comment-288161 ] 

Sergey Zakusov commented on MRESOURCES-156:
-------------------------------------------

sorry, it was my mistake
                
> Wrong example at http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
> --------------------------------------------------------------------------------------------
>
>                 Key: MRESOURCES-156
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-156
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>            Reporter: Sergey Zakusov
>            Priority: Trivial
>
> Warning: Do not filter files with binary content like images! This will most likely result in corrupt output. If you have both text files and binary files as resources, you need to declare two mutually exclusive resource sets. The first resource set defines the files to be filtered and the other resource set defines the files to copy unaltered as illustrated below:
> <project>
>   ...
>   <build>
>     ...
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>true</filtering>
>         <includes>
>           <include>**/*.xml</include>
>         </includes>
>       </resource>
>       <resource>
>         <directory>src/main/resources</directory>
>         <filtering>false</filtering>
>         <excludes>
>           <exclude>**/*.xml</exclude>
>         </excludes>
>       </resource>
>       ...
>     </resources>
>     ...
>   </build>
>   ...
> </project>

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