Sony Manuel's blog
NetBeans project template for SailFin tests
In my previous blog I had mentioned we developed the quicklook invite test (sailfin/sailfin-tests/quicklook/invite) as a NetBeans free-form project. I updated the NB project.xml for the test so that we can run all targets from NetBeans as we do from the command line. Some targets like (build, rebuild, run) directly map to ide-actions in NetBeans and can be accessed using the IDE shortcuts. Other targets like setup/unsetup and deploy/undeploy can be run from the project context-menu.
sailfin-tests build scripts use a number of properties which are not available to NetBeans. For the targets to work correctly from NB, edit sailfin/sailfin-tests/netbeans.config.properties file. Set the properties as per your local settings.
Also created a template project under sailfin-tests/templates/netbeans-template. To use the template while writing new tests follow these steps.
- Copy the template to the test location. Rename the directory appropriately
- Change the project name in build.xml and nbproject/project.xml
- Edit build.properties and set the relative path to netbeans.config.properties file. This file is available in sailfin/sailfin-tests directory.
- Edit build.xml and fix the import location of common.xml. This file is available in sailfin/sailfin-tests/config directory.
With the above changes the template can be used like any regular NB free-form project.
Posted at 09:02AM Sep 29, 2007 by sonymanuel in Sun | Comments[0]