Hello,

I'm trying to prevent a distribution of specific directory which exists under a distributed directory. The directory which I'm trying to exclude contain both files and additional sub-directories. I tried to put in exclude files the following:

  1. doc
  2. doc/*

None of the above option worked. Below is the code which I used:

<distributiondirectory allowwildcards="1"> <origin>${env(HOME)}/bitrock/t/${env(RELEASE)}/${project.vendor}-${project.version}-Applications-Windows/${product_shortname}/Modeling</origin> <excludefiles>doc</excludefiles> </distributiondirectory>

And

<distributiondirectory allowwildcards="1"> <origin>${env(HOME)}/bitrock/t/${env(RELEASE)}/${project.vendor}-${project.version}-Applications-Windows/${product_shortname}/Modeling</origin> <excludefiles>doc/*</excludefiles> </distributiondirectory>

Please advice, Thank You, Ronen

asked 11 Aug '13, 08:33

Ronen's gravatar image

Ronen
16565656
accept rate: 0%


If the doc directory exists directly under the Modeling distribution directory, you should use:

<!-- Please note we are now packing the contents of Modeling, so you will need to add '/Modeling' to your current folder destination --> 
<distributiondirectory allowwildcards="1"> 
     <origin>${env(HOME)}/bitrock/t/${env(RELEASE)}/${project.vendor}-${project.version}-Applications-Windows/${product_shortname}/Modeling/*</origin>
     <excludefiles>*/doc</excludefiles>
</distributiondirectory>

Another option would be to use the <onpackingfilterlist>:

 <folder>
   <description>Program Files</description>
   <destination>${installdir}</destination>
   <name>programfiles</name>
   <platforms>all</platforms>
   <distributionFileList>
     <distributionDirectory>
       <origin>${env(HOME)}/bitrock/t/${env(RELEASE)}/${project.vendor}-${project.version}-Applications-Windows/${product_shortname}/Modeling</origin>
       <onPackingFilterList>
          <fileNameFilter pattern="${env(HOME)}/bitrock/t/${env(RELEASE)}/${project.vendor}-${project.version}-Applications-Windows/${product_shortname}/Modeling/doc*" logic="does_not_match" patternType="glob"/>
       </onPackingFilterList>
     </distributionDirectory>
   </distributionFileList>
 </folder>
link

answered 12 Aug '13, 03:21

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×3

Asked: 11 Aug '13, 08:33

Seen: 1,081 times

Last updated: 12 Aug '13, 03:21