Reference > ANT targets > Ant targets: Creating and configuring targets
ANT target: OpenLaszloConfigureProperty
The OpenLaszloConfigureProperty configures properties such as a debug flag and an output directory for the OpenLaszlo project.
Prerequisites
The Management Center feature must be enabled.
Required parameters
- project
- The name of the Web project containing the Management Center code (for example, LOBTools).
Optional parameters
- debug
- Enables the debug flag; set to true or false. Setting the value to true produces an OpenLaszlo debug console after the ANT target completes. Setting the value to false does not produce a debug console.
- outputdir
- An output directory used by the compiler. Specify the relative path, under the project, to indicate where all the compiled files are stored.
Example
- <openLaszloConfigureProperty project="LOBTools" debug="false" outputdir="output"/>
Parameters specified as nested parameter
The openLaszloConfigureProperty target also accepts two optional children:
- openLaszloFile parameter is used to add new files to the existing file list. The path attribute is the name of a project relative path and is required to be specified, as shown in this example:
<openLaszloConfigureProperty project="LOBTools"> <openLaszloFile path="WebContent/a.lzx/"> </openLaszloConfigureProperty>
- openLaszloWarning parameter is used to add new warning filters to the existing filter list. The pattern attribute specifies a regular expression to filter warning messages and is required to be specified, as shown in this example:
<openLaszloConfigureProperty project="LOBTools"> <openLaszloWarning pattern=".*refid.*/"> </openLaszloConfigureProperty>In this example, any message containing the string of refid, is suppressed; these messages do not appear during the time the compiler is running.