This document contains more examples for using the PackageDoc configuration file for the Packager.
See the packager forum for more tips.
This information is only accurate for version 1.8.2 and later.
If you install the tookit via pctkexe.tar.gz, working examples are installed in the examples folder
See the examples as they are checked into CVS
=== You must specify <Recursive>1</Recursive> in order to copy files in subdirectories. There are ways to avoid traversing into particular subdirectories, which will be documented at a later time.
=== If destination is an absolute path, copy files to that path.
Source: docs/*.*
Destination: \\fileserver\share\dir
Copy docs/*.* to \\fileserver\share\dir
=== If the destination ends with a slash, that's a new directory structure.
Source: docs/*.*
Destination: docs2/foo/
Copy docs/*.* to docs2/foo/
=== If the destination doesn't end with a slash, and the source maps to one file, assume rename.
Source: docs/one.txt
Destination: docs2/foo/two.txt
Copy docs/one.txt to docs2/foo/txt
=== If Source ends with a slash, keep the rightmost directory name
Source: foo/docs/
Destination: baf
Copy foo/docs/*.* to baf/docs directory (losing foo level)
=== If Destination is not provided, and source ends with a slash, use the rightmost directory only as the destination
Source: foo/docs/
Copy foo/docs/*.* to docs directory
=== If the Source does not end with a slash, drop all of the source directories
Source: docs/*.*
Destination: foo
Copy docs/*.* to foo directory
=== If KeepDirectoryStructure is specified, leave the source path alone
Source: foo/docs
<KeepDirectoryStructure>1</KeepDirectoryStructure>
Copy foo/docs/*.* to foo/docs directory
Source: foo/docs
Destination: grover/
<KeepDirectoryStructure>1</KeepDirectoryStructure>
Copy foo/docs/*.* to foo/docs/grover directory
=== Append one Destination to another
<Destination>joe/</Destination>
<Filespec>foo.bar
<Destination>sue/</Destination>
</Filespec>
Copy foo.bar to joe/sue/foo.bar
