codepro.exportToFileSystem

(replaced in Eclipse 3.x / Ant 1.6.2 by Copy)

(old task name "ExportToFileSystem")

Exports project resources to the underlying file system (files and folders).  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:

  • destinationPath (required) = the path to where the resources will be exported
      
  • createLeadupStructure (optional - default true) = whether the directories containing the specified resources are created in the destination directory.  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 destinationPath/MyProject/src/myDirectories, whereas setting this attribute false causes the resources in the src folder to be exported into destinationPath/myDirectories.  This option only applies to files and directories specified using the <Resources> structure, not to FileSets.
         
  • overwriteFiles (optional - default false) = whether existing files are overwritten

The codepro.exportToFileSystem Ant task is based upon the standard ant copy task, so all of the options that apply to the copy task (such as FileSets) also apply to the codepro.exportToFileSystem task.

Example

<codepro.exportToFileSystem destinationPath="G:/export-out/files">
	<Resources>
		/CodeProStudioDemo
	</Resources>
</codepro.exportToFileSystem>

In this example, the CodeProStudioDemo project's entire contents are exported to the specified directory, preserving that projects entire directory structure.