Excluding Directory

Comments

1 comment

  • Avatar
    juanjo

    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>
    

Please sign in to leave a comment.