Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-505

Feature Request: useStrictFiltering option for FileSets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2
    • None
    • None
    • None
    • Maven 2.2.1, RHEL4

    Description

      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.

      Attachments

        1. fail_strictfiltering.zip
          2 kB
          John Dennis Casey

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdcasey John Dennis Casey
              Votes:
              11 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated: