user manual

Chapter 28: Apache Ant and running BES examples 335
Translating BES commands into Ant tasks
Translating BES commands into Ant tasks
Basic Syntax
The options for a command-line tool translated into equivalent XML attributes.
For example, the command line:
iastool -verify -src cart_beans_client.jar -role DEVELOPER -warn -nostrict
translates into the Ant task:
<iasverify src="cart_beans_client.jar" role="DEPLOYER" warn="true"
strict="false" />
For boolean-style attributes, use the base name of the attribute. For example,
the following command sets the warn attribute to false:
iastool -verify -src cart_beans_client.jar -role DEVELOPER -nowarn -
nostrict
The equivalent Ant task is:
<iasverify src="cart_beans_client.jar" role="DEPLOYER" warn="false"
strict="false"
Note It is not valid to use "nowarn" as an attribute. For instance, the following line
causes a syntax error:
****** INCORRECT SYNTAX!!! ******
<iasverify src="cart_beans_client.jar" role="DEPLOYER" nowarn="false"
strict="false" />
Omitting attributes
Omitting an attribute from the Ant task call has the same effect as omitting the
option from the command line. Since some attributes are true by default,
omitting an attribute does not necessarily set the attribute to false. For
example, the syntax for the iastool -verify command is:
iastool -verify -src srcjar -role <DEVELOPER|ASSEMBLER|DEPLOYER> [-nowarn]
[-strict] [-classpath <classpath>]
As the -nowarn and -strict options are the default command options, the
following commands are equivalent:
iastool -verify -src cart_beans_client.jar -role DEVELOPER
iastool -verify -src cart_beans_client.jar -role DEVELOPER -nowarn -strict
The equivalent Ant calls are:
<iasverify src="cart_beans_client.jar" role="DEPLOYER" />
<iasverify src="cart_beans_client.jar" role="DEPLOYER" warn="false"
strict="true" />