[ 
https://issues.apache.org/jira/browse/MASSEMBLY-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17816416#comment-17816416
 ] 

Slawomir Jaranowski commented on MASSEMBLY-505:
-----------------------------------------------

As I looked into code: includes/excludes from {{fileSets}} are passed to 
plexus-archiver where are passed to {{DirectoryScanner}} from plexus-utils ... 
so task to done:
 - in plexus-utils extends {{DirectoryScanner}} about statistics for 
includes/excludes
 - in plexus-archiver use and pass {{DirectoryScanner}} statistic to 
m-assembly-p
 - and finally in m-assemby-p fail according to given statistic about 
includes/excludes

> Feature Request: useStrictFiltering option for FileSets
> -------------------------------------------------------
>
>                 Key: MASSEMBLY-505
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-505
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: Maven 2.2.1, RHEL4
>            Reporter: John Dennis Casey
>            Priority: Major
>             Fix For: 3.7.0
>
>         Attachments: fail_strictfiltering.zip
>
>
> *NOTE:* This is a clone of MASSEMBLY-488. The original issue will be closed 
> Won't Fix, since the plexus-utils class DirectoryScanner, which is the core 
> of the FileSet functionality, doesn't support strict include/exclude 
> filtering.
> This issue is a feature request to have that added.
> ---------
> I'm trying to turn on useStrictFiltering in a fileSet in an assembly
> descriptor, but maven doesn't fail when the file does not exist.  Here
> is an example of what the assembly descriptor looks like:
> <?xml version="1.0" encoding="UTF-8"?><assembly>
>   <formats>
>     <format>tar.gz</format>
>   </formats>
>   <fileSets>
>    <fileSet>
>     <useStrictFiltering>true</useStrictFiltering>
>     <directory>src/main</directory>
>     <includes>
>      <include>nonexistant.txt*</include>
>     </includes>
>    </fileSet>
>   </fileSets>
> </assembly>
> Running "mvn package" happily produces a tarball with no indication that 
> anything is wrong.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to