codepro.exportToZipFile
(replaced in Eclipse 3.x / Ant 1.6.2 by
Zip)
(old task name "ExportToZipFile")
Exports project resources to a specified zip file. Each line in the
<Resources> section defines a project resource or group of resources to be exported,
where all paths are relative to the workspace root. If the resource specified is a
folder, then recursively all files and folders in that folder will included in the export.
Valid attributes include:
- destinationFilename (required) = the name and location of the
zip file to be created. This is identical to the zipfile or
destfile attribute provided by the standard ant zip task.
- createLeadupStructure (optional - default true) = whether the
directories containing the specified resources are created in the
destination zip file. For example, if MyProject's src
folder is specified as one of the resources to be exported, then setting
this attribute true causes the resources in the src folder to be
exported into MyProject/src/myDirectories,
whereas setting this attribute false causes the resources in the src
folder to be exported into myDirectories.
This option only applies to files and directories specified using the
<Resources> structure, not to FileSets.
- generateManifestFile (optional - default false) = whether or
not a manifest file is generated as part of the zip file.
- overwriteFile (optional - default false) = if true, then the
destination zip file, if it exists, will be deleted before building a
new zip file. This is the inverse of the update attribute provided
by the standard ant zip task
- useCompression (optional - default true) = whether or not the
contents of the zip file are to be compressed. This is identical
to the compress attribute provided by the standard ant zip task.
The codepro.exportToZipFile Ant task is based upon the standard ant
zip task,
so all of the options that apply to the zip task (such as
FileSets)
also apply to the codepro.exportToZipFile task.
Example:
<codepro.exportToZipFile destinationFilename="G:/export-out/export.zip">
<Resources>
/CodeProStudioDemo
</Resources>
</codepro.exportToZipFile>
In this example, the CodeProStudioDemo project's contents are being exported to the
specified zip file.
|