In Eclipse, click Run, External Tools. The External Tools dialog is displayed. Right-click Program, and then select New.

Configuring Your IDE to Support Integration with Oracle Enterprise Repository 9-11 Figure 9–12 Java EE - Eclipse Platform 4. Repeat the above steps to create another program called Submit this file to Oracle Enterprise Repository by using -file {resource_loc} instead of the {project_loc} variable and to submit the individual files.

9.2.1.3 Setting up Eclipse Environment to use Harvester via ANT

1. In the Eclipse Workspace, select Run, External Tools, External Tools

Configurations . 2. Create a new ANT build. 3. In the Main tab, enter the following: ■ Buildfile : Harvester_Home\harvester-ant.xml ■ Base Directory : Harvester_Home 4. In the Targets tab, check the introspect-project option. 5. In the Classpath tab, add the following external jars: ■ Harvester_Home\lib\mail-1.4.jar ■ Harvester_Home\lib\activation-1.0.2.jar 6. In the Properties tab, add the following propertiesvalues ■ project.dir{project_loc} ■ registration.statusUnsubmitted, Submitted - Pending Review, Submitted - Under Review, or Registered ■ repository.urlhttp:localhost:7101oer ■ repository.usernameadmin ■ repository.passwordencrypted password

7. In the Common tab, enable the External Tools option.

9-12 Oracle Fusion Middleware Integration Guide for Oracle Enterprise Repository

8. Click Apply, and then click Close.

After the configuration of the Properties tab, the External Tools dialog is displayed, as shown in Figure 9–13 . Figure 9–13 External Tools Dialog - Properties Tab

9.2.1.4 Harvesting in Eclipse Environment using ANT

1. In Eclipse, click New, Project, General, Project to create a new eclipse project.

2. Browse for any WSDL file in the file system, copy and paste it into the project that you just created.

3. Select the project and then click Submit this file to Oracle Enterprise Repository

using ANT . This invokes Harvester and submits all the artifacts in the project, as shown in Figure 9–14 . Figure 9–14 The Console Window

9.2.2 Configure the Oracle Enterprise Repository Plug-ins

This section describes the steps to configure the Oracle Enterprise Repository Plug-ins for repository access and the prerequisities to enable this configuration. This section contains the following topics: ■ Section 9.2.2.1, Configuring the Oracle Enterprise Repository Plug-ins for Repository Access ■ Section 9.2.2.2, Prerequisites for Using the Oracle Enterprise Repository Plug-ins for Eclipse