saker.jar Documentation TaskDoc JavaDoc Packages
Represents an resource configuration for ZIP archive creation. Accepts simple paths, file locations, file collections or may be configured directly. The target path of a resource is determined based on the way the option was configured. - If a simple file path or file location is specified, the resource is added to the archive with the file name of the path. E.g. if path/to/resource.txt is specified, it will have take resource.txt name in the archive. - In case of file collections, each file is added individually as a simple file. - In other cases, the TargetDirectory field and the relative path of each resource from the associated Directory is used to determine the archive path.
Summary
Fields
CompressionSets the compression that should be used for the configured resource.
DirectorySpecifies one or more directory paths which are used as a base to find Resources to add to the archive.
FilesSpecifies one or more files that should be added to the archive.
ResourcesWildcard patterns used to find resources relative to the specified Directories.
TargetDirectorySpecifies the target directory under which the entries specified in the configuration should be placed.
Fields
Sets the compression that should be used for the configured resource.
Specifies one or more directory paths which are used as a base to find Resources to add to the archive. Each wildcard specified in the Resources field will be matched relative to the Directory paths specified. The archive path will be the concatenation of the TargetDirectory field, and the relative path from the Directory to each found Resource. If no directory is specified, the current working path of the task will be used. This option cannot be used with Files.
Specifies one or more files that should be added to the archive. The files can be specified using simple paths, wildcards, file locations or file collections. The final archive path of each file will be the concatenation of the TargetDirectory and the file name of the specified files. This option cannot be used with Directory and Resources.
Collection of WildcardPath
Wildcard patterns used to find resources relative to the specified Directories. The specified wildcard paths in this field will be used to match the input files under the directories specified in Directory. Each matched file will be included in the archive with the path that is the concatenation of TargetDirectory and the relative path from the associated Directory. The wildcards can be used to match both files and directories to add to the archive. This option cannot be used with Files.
Specifies the target directory under which the entries specified in the configuration should be placed. Any input file that is matched by this configuration will have their archive paths prepended by the value of this field. The specified path must be forward relative. By default, no target directory is used.