[ 
https://jira.codehaus.org/browse/MASSEMBLY-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=320046#comment-320046
 ] 

Christoph Burmeister edited comment on MASSEMBLY-108 at 2/20/13 3:06 AM:
-------------------------------------------------------------------------

the lineEnding param seems to let the assembly-plugin ignore empty directories. 
For example you can use following workaround:
{code:xml} 
<fileSets>
   <fileSet>
      <directory>
        ${dir.with.empty.dirs}
      </directory>      
      <outputDirectory>
        ${output.dir}
      </outputDirectory>
      <excludes>
         <exclude>
            ${dir.with.special.lineEndings}
         </exclude>
      </excludes>
   </fileSet>
   <fileSet>
      <directory>
        ${dir.with.empty.dirs}
      </directory>      
      <outputDirectory>
        ${output.dir}
      </outputDirectory>
      <includes>
         <include>
            ${dir.with.special.lineEndings}
         </include>
      </includes>
      <lineEnding>unix</lineEnding>
   </fileSet>
</fileSets>
{code} 
                
      was (Author: chburmeister):
    the lineEnding param seems to let the assembly-plugin ignore empty 
directories. For example you can use following workaround:

<fileSets>
   <fileSet>
      <directory>
        ${dir.with.empty.dirs}
      </directory>      
      <outputDirectory>
        ${output.dir}
      </outputDirectory>
      <excludes>
         <exclude>
            ${dir.with.special.lineEndings}
         </exclude>
      </excludes>
   </fileSet>
   <fileSet>
      <directory>
        ${dir.with.empty.dirs}
      </directory>      
      <outputDirectory>
        ${output.dir}
      </outputDirectory>
      <includes>
         <include>
            ${dir.with.special.lineEndings}
         </include>
      </includes>
      <lineEnding>unix</lineEnding>
   </fileSet>
</fileSets>
                  
> Assembly Plugin Implicitly Excludes Empty Directory
> ---------------------------------------------------
>
>                 Key: MASSEMBLY-108
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-108
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.1
>            Reporter: Sharmarke Aden
>
> It seems that the inclusion of an empty directory isn't currently possible 
> with the assembly plugin. This is a problem because I would like to have an 
> empty "logs" directory included with my zip file assembly. It would be nice 
> if the assembly plugin gave you the option to add empty directories to an 
> assembly.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to