Setting properties

You can use the var task to set properties any number of times. When invoked, either explicitly or implicitly, ounceCreateProject uses the current property values. You can set properties by one of the methods outlined in this task topic.

Procedure

  • Use an attribute to an Ounce/Ant task if the attribute exists.
  • Use a var task before the appropriate AppScan® Source task. Properties set with var remain in scope only for the file in which they are set. To use the var task, the Ant contribution library must be in the Ant lib directory, and the taskdef task must reference it.
    <taskdef resource="net/sf/antcontrib/antlib.xml"/>
  • Use -D on the Ant command line.
  • Place the property in a build properties file (typically called build.properties).