Hi,

I'm using the maven assembly plugin to create an assembly of a source
tree.

My source tree sometimes contains empty directories (they have to be
there, don't ask!). Is there a way I can get the assembly plugin to
remove all empty directories from the assembly?

Here's my descriptor:

<assembly>
  <id>jrules-project-assembly</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <fileSets>
    <fileSet>
      <directory />
      <useDefaultExcludes>true</useDefaultExcludes>
      <includes>
        <include>*.xml</include>
        <include>*.sql</include>
        <include>*.js</include>
        <include>**/bom/**</include>
        <include>**/queries/**</include>
        <include>**/rules/**</include>
        <include>**/templates/**</include>
        <include>**/.ruleproject</include>
        <include>**/.project</include>
        <include>jrules-support/**</include>
      </includes>
      <excludes>
        <exclude>**/output/**</exclude>
        <exclude>**/target/**</exclude>
        <exclude>**/.rtserver/**</exclude>
        <exclude>**/.settings/**</exclude>
      </excludes>
    </fileSet>
</assembly>

Reply via email to