codepro.initExport

(old task name "InitExportProperties")

codepro.initExport

Does everything that codepro.initProperties does, plus defines parameters and properties as specified in the ExportSet wizard.

Example:

<codepro.initExport>
	<ExportParameters>
		Parameter1
		Parameter2="aDefValue"
	</ExportParameters>
	<ExportProperties>
		Property1="myValue"
	</ExportProperties>
</codepro.initExport>

In this example, there are two parameters defined and one property.  Parameters and properties are very similar to Ant properties.  Each parameter and property are defined on a separate line.  When this example Ant task is executed, the following steps will be taken

  • If an Ant property with the name "Parameter1" is not defined, then a BuildException will be thrown.  If it is already defined, then its value is not changed.

  • If an Ant property with the name "Parameter2" is not defined, then this task defines it with the specified default value.  If it is already defined, then its value is not changed.

  • The Ant property named "Proprty1" is defined to have the specified value regardless of whether it existed before or not

The ExportParameters and ExportProperties sub xml elements are optional and may be omitted.