IBM SC34-4499-03 manual Target Targetpath

Models: SC34-4499-03

1 356
Download 356 pages 55.74 Kb
Page 231
Image 231

The resulting source path is the concatenation of d:\demoapp with the SOURCE ®le speci®cations. Therefore, all of the .exe ®les in the directory d:\demoapp\bin are copied to the target directory e:\demoapp\bin.

(DATA

(TARGETROOT e:\demoapp)

.

.

(RULE

(SOURCE bin\*.exe) (TARGET bin)

)

.

.

)

In the following example, a list of input ®les is speci®ed on the teamcpak command:

teamcpak -o "-x -m" gather c:\a.exe c:\b.exe d:\rexx\*.cmd demoga.pkf

The resulting source path for the ®les in the SOURCE clause is the concatenation of the teamcpak temporary directory with the SOURCE ®le speci®cations. Therefore, the source for the *.exe ®les is d:\teamcpak.@@@\*.exe. The input ®les d:\teamcpak.@@@\a.exe and d:\teamcpak.@@@\b.exe are copied to the directory e:\demoapp.

(DATA

(TARGETROOT e:\demoapp)

.

.

(RULE

(SOURCE *.exe ) (TARGET targetroot)

)

.

.

)

TARGET Target_path

This keyword is required one time in each RULE clause. It must follow the SOURCE keyword.

The value speci®ed by this keyword is used to construct the target path into which the ®les speci®ed by the SOURCE keyword are copied. The value of the TARGETROOT keyword is concatenated with a backslash (\), followed by the value of the TARGET keyword.

If you specify targetroot as the value, ®les are copied directly to the target root directory, not to a subdirectory.

In the ®rst RULE clause of this example, ®les are copied to the target directory f:\demoapp\bin\®les. In the second RULE clause, the target directory is f:\demoapp.

Chapter 17. Using the Gather tool 211

Page 231
Image 231
IBM SC34-4499-03 manual Target Targetpath