You can run the plug-in project generation scripts to create an HTML plug-in project template and build a plug-in out of the project.

The vSphere Client development kit provides two project generation scripts which you can use depending on the operating system of your development environment.

Verify that you set up the correct paths for the ANT_HOME and VSPHERE_SDK_HOME environment variables. See Automate the Plug-In Build Process.

Verify that you set up the correct path for the FLEX_HOME environment variable. See Set Up the Adobe Flex 4.6 Software Development Kit.

1

In your development environment, open a command prompt or launch the Terminal application.

2

Navigate to the Plugin generation scripts folder.

On a Windows machine, the generation scripts are located at SDK_folder\vsphere-client-sdk\html-client-sdk\tools\Plugin generation scripts.

3

Run the create-html-plugin.bat or the create-html-plugin script depending on your OS.

4

When prompted, enter the plug-in name, the directory on your machine where the project template folder structure will be created, and the plug-in package name.

If you do not specify a value when prompted, the generation script uses predefined values.

The script generates two folders, myplugin-service and myplugin-ui. For more information about the contents of each folder, see Contents of the HTML Plug-In Project Template.

After you generate the HTML plug-in project template, you can build the plug-in package and test whether your plug-in works by deploying the plug-in on the vSphere Client or the vSphere Web Client. For detailed information, see Building a Plug-In Package from the Project Template and Testing the Generated Plug-Ins.