Hi Team; I would like to be able to add a specific file or list of files from a given folder to it's namesake in the destination directory. I realize i can add a directory tree and then use a filter to grab files that meet a certain criteria. however some of the files will follow one pattern but there are files that i don't want to include that would also satisfy that pattern. Is there a way to just specify that i want these files in this directory kind of like the way we specify the items that we want to add to the install directory?

asked 08 Nov '11, 07:58

shawn's gravatar image

shawn
5668
accept rate: 0%

Sorry, I'm not sure I fully understand the issue. Could you provide us with some example or pseudo-code? Do you have a hardcoded list of files that should be packed or the one of files that should not? Also, did you tried using the advanced filters?

(08 Nov '11, 08:12) juanjo ♦♦

I am trying to grab a specific set of files and folders from a third party directory that that contains the runtime dlls that we need to run with. From what i can see, i can add a directory tree to the destination folder but it has to have all the files in it. In some cases i could be looking for one or two dlls in a directory and if i use a filter for them i could be dragging in dlls i don't want.

(08 Nov '11, 12:17) shawn

Not sure if this would solve the issue but what I meant was, if you know the set of files you want to pack (file1, file2, file3, dir1, dir2, dir3), you can use their paths as patterns for the filters:

 <folder>
   <description>Program Files</description>
   <destination>${installdir}</destination>
   <name>programfiles</name>
   <platforms>all</platforms>
   <distributionFileList>
     <distributionDirectory>
       <origin>dist-files</origin>
       <onPackingFilterList>
          <fileNameFilter>
            <pattern>
    *dist-files/path/to/file1
    *dist-files/other/path/to/file2
    *dist-files/other/path/to/file3
    *dist-files/dir1
    *dist-files/other/dir/dir2
    *dist-files/some/other/dir3
    </pattern>
            <logic>matches</matches>
            <patternType>glob</patternType>
       </onPackingFilterList>
     </distributionDirectory>
   </distributionFileList>
 </folder>

Where dist-files is the third-party directory containing the files. You can particularize the patterns as much as needed or use more relaxed patterns when possible.

Was this what you were looking for?

link

answered 08 Nov '11, 12:43

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:

×33
×29
×14

Asked: 08 Nov '11, 07:58

Seen: 1,983 times

Last updated: 22 Nov '11, 08:08