TS 73 APISupport Ant Harness

TS_73_APISupport_Ant_Harness Test Specification for NetBeans 7.3

Author: Tushar Joshi
Version: 1.2
Last update: 10/04/2012
Introduction: Test Specification to test the automatic download of the harness and platform when configured in the suite files.

Contents


Test suite: Automatic download of Harness and Platform via ant script

Purpose: NetBeans Platform suite can be built even if the harness and platform are not available. The URLs configured in the configuration of script shall take care of downloading of the desired harness and platform before building the application suite.
Setup: setup description

  1. Automatic download of Harness and Platform via ant script
    1. Go to menu File > New Project..., in Categories list select NetBeans Modules option, in the Projects list select the NetBeans Platform Application option, click Next button.
    2. On the Name and Location page, for Project Name field type MyApp1, keep all the other options to their default values, click Finish button.
    3. Open the Important Files node in the Projects panel and open the NetBeans Platform Configuration node by double clicking it, which will open the file platform.properties in the editor area.
    4. Remove the last line that is
      nbplatform.active=default
    5. Add the following lines in place of the removed line...
suite.dir=${basedir}
nbplatform.active.dir=${suite.dir}/netbeans73
harness.dir=${nbplatform.active.dir}/harness
bootstrap.url=http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/netbeans/harness/tasks.jar
autoupdate.catalog.url=http://updates.netbeans.org/netbeans/updates/7.3/uc/beta/distribution/catalog.xml.gz
    1. Go to menu Run > Clean and Build Project
    2. If you use NetBeans Platform Application created in some of the older NetBeans version opened in version 7.3, you will probably get after invocation of Clean and Build Project action warning message Module Command-line Serviceability in platform depends on an unknown module named org.netbeans.modules.autoupdate.services. This problem can be fixed by adding following modules to disabled.modules property of file platform.properties manually:
org.netbeans.modules.autoupdate.cli
org.netbeans.modules.templates
    • EXPECTED RESULT: NetBeans shall download all the required harness and platform dependencies in a folder named netbeans73 and the build shall be successful.
  1. Building NetBeans Platform application without NetBeans
    1. Copy the netbeans platform application suite named MyApp1 to some other location where NetBeans platform is not installed. Ensure that the folder netbeans73 is removed if it is copied.
    2. Open terminal and change current directory to the MyApp1 directory
    3. Issue command
      ant
      This will ensure that the platform and harness is downloaded the project s built.
    4. Issue command
      ant run
      which will run the application with the NetBeans Platform stable version 7.3
    • EXPECTED RESULT: The application shall download all the required harness and platform dependencies when ant command is issues and the application shall run properly when ant run command is issued


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo