web server - Borland Technical Publications
web server - Borland Technical Publications web server - Borland Technical Publications
Chapter 28 28BES Ant tasks and running Chapter BES examples Many of the BES examples now employ the Ant build script system. In addition to Ant's core functionality, the BES version of Ant includes customized tasks for several of the BES command line tools, including commands of the following: ■ appclient ■ iastool ■ idl2java ■ java2iiop These customized Ant tasks have the following advantages over using exec or apply directives: ■ ■ ■ Customized Ant tasks run under the VM used to launch the Ant script, hence they run faster and use less memory compared to spawning new JVMs with the exec/ apply commands. Customized tasks have a much simpler command syntax than the exec/apply version. Ant features such as filesets and patternsets are available in a more natural way. Chapter 28: BES Ant tasks and running BES examples 283
General syntax and usage General syntax and usage The following table shows the currently defined Ant tasks and their relationship to the equivalent command line tools. Ant task name Equivalent command line Function appclient appclient Runs a client application. idl2java idl2java Converts IDL to Java classes. java2iiop java2iiop Executes the java2iiop command. iastool iastool Runs iastool. Generally the BES Ant task uses the same pattern as the command-line tool equivalent. Name-value pair transformation All name-value pair command line arguments can be transformed into Ant task attributes. The name-value pair command-line arguments should be translated into equivalent XML attributes. For example, the command line: iastool -verify -src cart_beans_client.jar -role DEVELOPER translates into the Ant task: Name-only argument transformation All name-only command-line arguments can be transformed into boolean type Ant task attributes. For boolean-style attributes, such as -nowarn, use the default usage of the attribute, according to the usage documented for each of the command line tools. See Chapter 29, “iastool command-line utility” for more information about iastool command line attributes. Note 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: It is not valid to use “warn” as an attribute in the Ant task. For instance, the following line causes a syntax error: ****** INCORRECT SYNTAX!!! ****** Multiple File Arguments Many commands either act on multiple files or have options which can point to multiple files. There are several ways to achieve this functionality in the equivalent Ant task. For example, the iastool -merge command: iastool -merge -target build\client.jar -type lib client\build\local_client.jar build\local_stubs.jar 284 BES Developer’s Guide
- Page 243 and 244: OpenJMS Important If you use OpenJM
- Page 245 and 246: OpenJMS openjms.clean_messages_on_s
- Page 247 and 248: OpenJMS Table 24.1 Property Name De
- Page 249 and 250: Other JMS providers The following a
- Page 251 and 252: 240 BES Developer’s Guide
- Page 253 and 254: Creating the Interceptor Class For
- Page 255 and 256: Creating the JAR file Creating the
- Page 257 and 258: Components Components The Connector
- Page 259 and 260: System Contracts Connection Managem
- Page 261 and 262: System Contracts Security Managemen
- Page 263 and 264: Common Client Interface (CCI) Conne
- Page 265 and 266: Packaging and Deployment Figure 26.
- Page 267 and 268: Resource Adapters Resource Adapters
- Page 269 and 270: Connection management Connection ma
- Page 271 and 272: Security management with the Securi
- Page 273 and 274: Security management with the Securi
- Page 275 and 276: Resource Adapter overview Note Reso
- Page 277 and 278: Deployment Descriptors for the Reso
- Page 279 and 280: Developing the Resource Adapter Con
- Page 281 and 282: Deploying the Resource Adapter Pack
- Page 283 and 284: Application development overview 8
- Page 285 and 286: Application development overview //
- Page 287 and 288: Application development overview
- Page 289 and 290: Other Considerations Other Consider
- Page 291 and 292: Other Considerations To illustrate,
- Page 293: Other Considerations } } { cf = new
- Page 297 and 298: Syntax and usage for iastool Table
- Page 299 and 300: Syntax and usage for java2iiop Exam
- Page 301 and 302: Syntax and usage for appclient Tabl
- Page 303 and 304: Building and running the BES exampl
- Page 305 and 306: Using the iastool command-line tool
- Page 307 and 308: Using the iastool command-line tool
- Page 309 and 310: Using the iastool command-line tool
- Page 311 and 312: Using the iastool command-line tool
- Page 313 and 314: Using the iastool command-line tool
- Page 315 and 316: Using the iastool command-line tool
- Page 317 and 318: Using the iastool command-line tool
- Page 319 and 320: Using the iastool command-line tool
- Page 321 and 322: Using the iastool command-line tool
- Page 323 and 324: Using the iastool command-line tool
- Page 325 and 326: Using the iastool command-line tool
- Page 327 and 328: Using the iastool command-line tool
- Page 329 and 330: Using the iastool command-line tool
- Page 331 and 332: Using the iastool command-line tool
- Page 333 and 334: Executing iastool command-line tool
- Page 335 and 336: 324 BES Developer’s Guide
- Page 337 and 338: element ■ ■ ■ element The
- Page 339 and 340: element The Partition statistics ag
- Page 341 and 342: element element The services eleme
- Page 343 and 344: element element The archive elemen
General syntax and usage<br />
General syntax and usage<br />
The following table shows the currently defined Ant tasks and their relationship to the<br />
equivalent command line tools.<br />
Ant task name Equivalent command line Function<br />
appclient appclient Runs a client application.<br />
idl2java idl2java Converts IDL to Java classes.<br />
java2iiop java2iiop Executes the java2iiop command.<br />
iastool iastool Runs iastool.<br />
Generally the BES Ant task uses the same pattern as the command-line tool<br />
equivalent.<br />
Name-value pair transformation<br />
All name-value pair command line arguments can be transformed into Ant task<br />
attributes. The name-value pair command-line arguments should be translated into<br />
equivalent XML attributes. For example, the command line:<br />
iastool -verify -src cart_beans_client.jar -role DEVELOPER<br />
translates into the Ant task:<br />
<br />
Name-only argument transformation<br />
All name-only command-line arguments can be transformed into boolean type Ant task<br />
attributes. For boolean-style attributes, such as -nowarn, use the default usage of the<br />
attribute, according to the usage documented for each of the command line tools. See<br />
Chapter 29, “iastool command-line utility” for more information about iastool command<br />
line attributes.<br />
Note<br />
For example, the following command sets the warn attribute to false:<br />
iastool -verify -src cart_beans_client.jar -role DEVELOPER -nowarn -nostrict<br />
The equivalent Ant task is:<br />
<br />
It is not valid to use “warn” as an attribute in the Ant task. For instance, the following<br />
line causes a syntax error:<br />
****** INCORRECT SYNTAX!!! ******<br />
<br />
Multiple File Arguments<br />
Many commands either act on multiple files or have options which can point to multiple<br />
files. There are several ways to achieve this functionality in the equivalent Ant task. For<br />
example, the iastool -merge command:<br />
iastool -merge -target build\client.jar -type lib client\build\local_client.jar<br />
build\local_stubs.jar<br />
284 BES Developer’s Guide