Executing the Build Script from JDeveloper

In JDeveloper, developers can build an EnterpriseOne ADF application to test the application before actually building and deploying it in a production environment as described in EnterpriseOne ADF Application Deployment of this guide.

The JDE Ant build files can be executed from within JDeveloper by adding the Ant targets to the Tools menu as External Tool executables.

To execute Ant Targets from JDeveloper menu:

  1. In JDeveloper, click Tools, then External Tools, and then select New from the External Tools dialog box.

  2. Click Next.

  3. Browse to the Ant build file you want to run, and click Next.

  4. Move the build-and-deploy target to the Selected Targets field, and then click Next.

  5. Set the Oracle WebLogic Server username and password properties needed for the build-and-deploy, deploy, and undeploy targets only. For any other Ant target in the script, these properties are not used.

    The administrative username - weblogic.username

    The administrative password - weblogic.password

  6. Select the Use Default Ant Version option, and then click Next.

  7. Specify the options for the Ant process, and then click Next.

  8. The Weblogic.jar includes the class definition for the wldeploy Ant task used to deploy/undeploy files to/from an Oracle WebLogic Server. The Weblogic.jar file can be found in the <Weblogic_HOME>/server/lib directory, where Weblogic_HOME is the top-level directory of your Oracle WebLogic Server installation. This step is not necessary for any other Ant target in the build scripts.

  9. Enter a caption for the menu item, and then click Next.

  10. Select the Tools Menu option for the Add Items to Menus list, and then click Next.

  11. Select Always, and then click Finish.

    Once the Ant target is added, it can be executed from the Tools menu. During execution, the Apache Ant log will display the Ant target's status and display messages if any exceptions are thrown.