maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Boué (JIRA) <>
Subject [jira] (MASSEMBLY-752) [PATCH] Option to ignore empty directories on fileSet directory
Date Tue, 17 Feb 2015 17:10:19 GMT
Guillaume Boué created MASSEMBLY-752:

             Summary: [PATCH] Option to ignore empty directories on fileSet directory
                 Key: MASSEMBLY-752
             Project: Maven Assembly Plugin
          Issue Type: Improvement
    Affects Versions: 2.5.3
            Reporter: Guillaume Boué
         Attachments: MASSEMBLY-ignoreEmptyDirectories.patch

When the directory attribute of fileSets contains empty directories, it would be nice to have
an option to ignore them.

======= Actual behaviour :

Considering the structure :
   +-- folder1/
      +-- file.txt
   +-- folder2/

with the following fileSet in assembly.xml :

the assembly-plugin produces, as of today :

Note that the empty directory folder2 is present in the assembly.

======= Proposed enhancement

With this enhancement, it would be possible to have the following in assembly.xml :

and the resulting assembly would be :

Note that folder2 would not be present inside the assembly.

Attached is a patch adding the attribute "includeEmptyDirectories" to fileSet element in assembly.xml
file. For backward compatibility, the default value of this attribute is true.

This message was sent by Atlassian JIRA

View raw message