Apache Ant is used by the scripts in the SDK to generate plug-in project templates and to build plug-ins.

You can setup Apache Ant in your development environment to generate plug-in project templates and build plug-ins out of the projects. You can build also the samples provided with the vSphere Web Client SDK and the vSphere Client development kit.

To use the SDK build scripts inside Eclipse, you can use the Apache Ant version provided with the Eclipse package. The following procedure setups Apache Ant for running scripts by using the command line console.

Verify that you have a Java environment installed on your development machine. See Set Up for Java Development.

1

From the Apache Ant site at http://ant.apache.org/bindownload.cgi, download the Apache Ant binary distribution.

For developing Flex-based plug-ins, download Apache Ant 1. 7.1 or later.

For developing HTML plug-ins, download Apache Ant 1.9.x.

2

Install Apache Ant by following the provided instructions for the operating system of your development machine.

3

Set the ANT_HOME environment variable to the directory on your development machine where you installed Apache Ant.

4

Set the VSPHERE_SDK_HOME environment variable to the directory on your development machine where you extracted the vSphere Web Client SDK.

For developing Flex-based plug-ins, set the environment variable to the flex-client-sdk directory on your development machine.

For developing HTML plug-ins, set the environment variable to the html-client-sdk directory on your development machine.