[
https://jira.codehaus.org/browse/MASSEMBLY-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=345992#comment-345992
]
Karl-Heinz Marbaise commented on MASSEMBLY-699:
-----------------------------------------------
You don't need to use maven-antrun plugin etc. to create empty directories in
maven-assembly-plugin. This could be achieved by using the following assembly
descriptor snippet:
{code:xml}
<fileSets>
<fileSet>
<outputDirectory>/an-other-empty-folder</outputDirectory>
<directory>${project.basedir}/target</directory>
<excludes>
<exclude>*</exclude>
</excludes>
</fileSet>
</fileSets>
{code}
Of course it's not very obvious how to create an empty folder. So may be we
should think about making this more convenient to use like:
{code:xml}
<fileSets>
<fileSet>
<outputDirectory>/an-other-empty-folder</outputDirectory>
<empty>true</empty>
</fileSet>
</fileSets>
{code}
> Ability to create empty directories in assembly
> -----------------------------------------------
>
> Key: MASSEMBLY-699
> URL: https://jira.codehaus.org/browse/MASSEMBLY-699
> Project: Maven Assembly Plugin
> Issue Type: New Feature
> Components: manifest
> Affects Versions: 2.4
> Reporter: ERt
> Priority: Minor
>
> It is common scenario to create empty directories in output assembly. Right
> now user have to prepare it manually using maven-antrun-plugin and later copy
> it to output structure using <fileSet> element. It could be a good idea to
> have this feature directly in assembly pluign. Below is sample change to
> assembly description:
> {code}
> <assembly
> xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
> http://maven.apache.org/xsd/assembly-1.1.2.xsd">
> (...)
> <emptyDirectories>
> <emptyDirectory>dirA</emptyDirectory>
> <emptyDirectory>dirB</emptyDirectory>
> </emptyDirectories>
> (...)
> </assembly>
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)