Skip Headers
Oracle® Fusion Middleware Tutorial for Running and Building an Application with Oracle SOA Suite
11g Release 1 (11.1.1)

Part Number E10275-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

B ant Scripts

This appendix contains the following sections:

B.1 About ant Scripts

ant is a Java-based build tool used by Oracle SOA Suite for managing SOA composite applications. The WebLogic Fusion Order Demo application provides an example of using ant scripts to compile, package, and deploy the application.

The following files control the ant scripts:

To use ant scripts for specified ant targets:

  1. Modify the build.properties file to reflect your environment.

  2. In the Application Navigator, under the Resources node, right-click build.xml and choose Run Ant Target and select appropriate ant target.

    This command builds the targets defined in the build.xml file.

B.2 ant Targets for WebLogicFusionOrderDemo

Table B-1 describes the targets available in the build.xml file. It shows which other targets are dependent or called from a target. If a called target exists in another file, the table references the file and location as directory > file_name > target).

Table B-1 ant Targets for WebLogicFusionOrderDemo

ant Target Description Dependent Targets and Targets Called From Other Targets. Targets from another file display as directory > file_name > target.

build.src.zip

This script creates the source distribution.

Depends on clean

clean

This script removes existing sources.

Depends on init and runs the following:

  1. orderbooking.composite.home/bin > build-sca-composite.xml > clean

  2. orderbooking.bam.home/bin > build-sca-composite.xml > clean

  3. partnersupplier.composite.home/bin > build-sca-composite.xml > clean

  4. b2b.composite.home/bin > build-sca-composite.xml > clean.

  5. orderbookingsdo.composite.home/bin > build-sca-composite.xml > clean

  6. creditauthorization.home/bin > build-sca-composite.xml > clean

  7. creditauthorization.home/bin > build-sca-composite.xml > clean

  8. orderapproval.home/bin/bin > build-sca-composite.xml > clean

compile-build-all

This script compiles and builds all applicable composites and applications.

Depends on init and runs the following:

  1. orderbooking.composite.home/bin > build-sca-composite.xml > create-deployable-composite

    -ORACLE_HOME/bin > ant-sca-package.xml > package

    -orderbooking.composite.home/bin > build-sca-composite.xml > setupDeploymentEnvironment

  2. orderbooking.bam.home/bin > build-sca-composite.xml > create-deployable-composite

    -ORACLE_HOME/bin > ant-sca-package.xml > package

    -orderbooking.bam.home/bin > build-sca-composite.xml > setupDeploymentEnvironment

  3. partnersupplier.composite.home/bin > build-sca-composite.xml > create-deployable-composite

    -ORACLE_HOME/bin > ant-sca-package.xml > package

  4. b2b.composite.home/bin > build-sca-composite.xml > create-deployable-composite

    -ORACLE_HOME/bin > ant-sca-package.xml > package

    -b2b.composite.home/bin > build-sca-composite.xml > setupDeploymentEnvironment

  5. orderbookingsdo.composite.home > build-sca-composite.xml > create-deployable-composite

    -ORACLE_HOME/bin > ant-sca-package.xml > package

  6. creditauthorization.home/bin > build.xml > create-war

  7. orderapproval.home/bin > build.xml > create-ear

compile-deploy-all

This script compiles, builds, and deploys all applicable composites and applications.

Depends on compile-build-all and runs the following:

  1. orderbooking.composite.home/bin > build-sca-composite.xml > deploy-composite

    -ORACLE_HOME/bin > ant-sca-compile.xml > attachplan

    -ORACLE_HOME/bin > ant-sca-deploy.xml > deploy

  2. orderbooking.bam.home/bin > build-sca-composite.xml > deploy-composite

    -ORACLE_HOME/bin > ant-sca-compile.xml > attachplan

    -ORACLE_HOME/bin > ant-sca-deploy.xml > deploy

  3. partnersupplier.composite.home/bin > build-sca-composite.xml > deploy-composite

    -ORACLE_HOME/bin > ant-sca-compile.xml > attachplan

  4. b2b.composite.home/bin > build-sca-composite.xml > deploy-composite

    -ORACLE_HOME/bin > ant-sca-compile.xml > attachplan

    -ORACLE_HOME/bin > ant-sca-deploy.xml > deploy

  5. orderbookingsdo.composite.home/bin > build-sca-composite.xml > deploy-composite

    -ORACLE_HOME/bin > ant-sca-deploy.xml > attachplan

  6. creditauthorization.home/bin > build.xml > deploy-application

  7. orderapproval.home/bin > build.xml > deploy-application

createMDSConnections

This script seeds Oracle Metadata Repository connection information.

Runs the following:

  1. createMDSConnectionsForDB

  2. createMDSConnectionsForFileStore

  3. createMDSConnectionsForServerFileStore

createMDSConnectionsForDB

This script seeds the connections for a database-based Oracle Metadata Repository.

build.properties > foreign.mds.type=db

createMDSConnectionsForFileStore

This script seeds the connections for a file-based Oracle Metadata Repository.

build.properties > foreign.mds.type=jdev

createMDSConnectionsForServerFileStore

This script seeds the connections for a database-based Oracle Metadata Repository.

build.properties > foreign.mds.type=server.file

init

This script displays build information.

Not applicable

jdeveloper-setup-seed

This script complete client-side setup.

Depends on init and runs the following:

  1. createMDSConnections

  2. seedFodJmsResources

  3. setupWorkspaceForJdeveloerUse

removeDemoUsers

This script removes the demo community

Runs deploy SOATestDemoApp -action REMOVE_COMMUNITY

removeFodJmsResources

This script removes the JMS resources.

Not applicable

seedB2BAgreements

This script seeds Trading Partner agreements.

b2b.composite.home/bin > build-sca-composite.xml > importAndDeployB2BtradingAgreements

seedDemoUsers

This script seeds the demo community. For this tutorial, it adds jstein as the user to approve orders for over $2,000. When you run the demo, you place an order for $2,000 and log in to the Oracle BPM Worklist as jstein and approve the order.

Runs deploy SOATestDemoApp -action SEED_COMMUNITY

SOATestDemoApp is a server-side application to seed the users.

seedFodJmsResources

This script creates the needed JMS resources.

Not applicable

setupWorkspaceForJDeveloperUse

This script sets up the application workspace in Oracle JDeveloper.

Runs the following:

  1. orderbooking.composite.home/bin > build-sca-composite.xml > setupDeploymentEnvironment

  2. orderbooking.bam.home/bin > build-sca-composite.xml > setupDeploymentEnvironment

  3. b2b.composite.home/bin > build-sca-composite.xml > deploy-composite

  4. createMDSConnection

server-cleanup-all

This script removes existing sources and undeploys applications.

Depends on init and runs the following:

  1. orderbooking.composite.home/bin > build-sca-composite.xml > undeploy-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > undeploy

  2. orderbooking.bam.home/bin > build-sca-composite.xml > undeploy-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > undeploy

  3. partnersupplier.composite.home/bin > build-sca-composite.xml > undeploy-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > undeploy

  4. b2b.composite.home/bin > build-sca-composite.xml > undeploy-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > undeploy

  5. orderbookingsdo.composite.home/bin > build-sca-composite.xml > undeploy-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > undeploy

  6. creditauthorization.home/bin > build.xml > undeploy-application

  7. orderapproval.home/bin/bin > build.xml > undeploy-application

    -b2b.composite.home/bin > build-sca-composite.xml > purgeB2BTradingAgreements

  8. removeFodJmsResources

  9. removeDemoUsers

server-setup-seed-deploy-test

This script runs all the other targets.

Runs the following:

  1. createMDSConnections

  2. compile-deploy-all

  3. seedFodJmsResources

  4. seedB2BAgreements

  5. seedDemoUsers

  6. orderbooking.bam.home/bin > build-sca-composite.xml > seedBAMServerObjects

    Depends on createBAMConfig

  7. orderbooking.bam.home/bin > build-sca-composite.xml > seedBAMAdapterResources

  8. orderbooking.composite.home > build-sca-composite.xml > test-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > test

  9. orderbooking.bam.home > build-sca-composite.xml > test-composite

    -ORACLE_HOME/bin > ant-sca-test.xml > test