[ 
https://issues.apache.org/jira/browse/MASSEMBLY-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold updated MASSEMBLY-752:
-----------------------------------------
    Fix Version/s: 3.0.0

> [PATCH] Option to ignore empty directories in fileSet directory
> ---------------------------------------------------------------
>
>                 Key: MASSEMBLY-752
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-752
>             Project: Maven Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.5.3
>            Reporter: Guillaume Boué
>             Fix For: 3.0.0
>
>         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 :
> src/
>        +-- folder1/file.txt
>        +-- folder2/
> with the following fileSet in assembly.xml :
> <fileSet>
>     <directory>src</directory>
>     <outputDirectory>/</outputDirectory>
> </fileSet>
> the assembly-plugin produces, as of today :
> /folder1/file.txt
> /folder2
> 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 :
> <fileSet>
>     <directory>src</directory>
>     <outputDirectory>/</outputDirectory>
>     <includeEmptyDirectories>false</includeEmptyDirectories>
> </fileSet>
> and the resulting assembly would be :
> /folder1/file.txt
> Note that folder2 would not be present inside the assembly because it is 
> empty.
> Attached is a patch adding the attribute "includeEmptyDirectories" to the 
> fileSet element in assembly.xml file. For backward compatibility, the default 
> value of this attribute is true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to