To follow along you will already need to have VMware Studio running and will need to set up an Eclipse development environment.
To get started I downloaded the Eclipse IDE distributed by Aptanu at http://www.aptana.org/ and installed the optional Aptana Aflax feature by going to Help->Install Aptana Features then selecting Ajax Libraries->Aflax and then clicking install. You can also select the editing tools that you want to use for your app.
I then installed the VMware Studio Eclipse Plugin by following the guide at http://www.vmware.com/support/developer/studio/studio20/eclipse_plugin.html.
You can use the Eclipse tools to further test and develop this web app. Open the index.html file and modify the source or preview the changes.
This application needs the web server to automatically start when the VM is booted. To make this happen, we edit the post-install script for vsp.
We are almost done! Now we just need to set up a VM build profile on VMware Studio. For this blog I chose to use CentOS and keep the default configuration for everything except setting the root password and editing the settings for the provisioning engine.
You can create the profile directly in Eclipse by clicking on VMware Studio Web Console in the VMware Studio Explorer view. Create the profile then save and close it.
Then when you are ready, click on Build Package… in the vsp editor. The first time you may be prompted to create a package repository, just accept the default by clicking Yes then OK. Select the VM profile to add this package to, and enable Automatically start VM build. Then click on Finish.
A new Eclipse job is started, which monitors the build, and will notify you when it is finished. You can monitor the status of the build by opening the Progress view.
Once the build is done you can deploy the VM to test it.
That is all that is needed. Easy! Your VM is now ready to be shipped.
The Eclipse plugin provides several other feature, like looking at the build logs, and creating default service packages to extend the VAMI framework.
Please leave comments and let us know how this went for you!