ctron / rpm-builder

Maven RPM builder plugin
https://ctron.github.io/rpm-builder
Eclipse Public License 2.0
56 stars 32 forks source link

Entryset Collect not excluding directories #3

Closed Ajbawa closed 8 years ago

Ajbawa commented 8 years ago

Given the following entry:

<entry>
    <name>${my-deploy.dir}</name>
    <collect>
      <from>../rpm-module-a/target/</from>
      <directories>false</directories>
    </collect>
    <user>jboss1</user>
    <group>jboss1</group>
    <mode>0640</mode>
</entry>

I find directories from the ../rpm-module-a/target/ are still included in the .rpm archive. How is one supposed to exclude directories and / or filter files included using a 'collect'.

I am using version 0.8.0 of the plugin and currently have no rulesets defined in the pom.xml.

ctron commented 8 years ago

Do you have an example?

Currently there is no way to exclude files from a "collect" entry.

Ajbawa commented 8 years ago

I am not concerned with excluding / filtering files - its a nice to have. Something like '../rpm-module-a/target/**.jar' to only collect .jar files.

What I really need is to exclude any sub-folders in the <from>../rpm-module-a/target/</from> folder ? I was under the impression that was the purpose of <directories>false</directories> option ?

ctron commented 8 years ago

The directories flag controls whether directories are marked as directories. Meaning that the RPM will "own" that directory and remove it during removal of the RPM.

Ajbawa commented 8 years ago

Thanks - I now understand its purpose. I do need to understand the RPM format much better. I have been able to work around my issues by add a single file. This issue is no longer valid and I will close it. Thanks for your prompt responses.

ctron commented 8 years ago

Thanks for reporting!