This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166794 - allow configuration of codecoverage parameters for command-line ant build
Summary: allow configuration of codecoverage parameters for command-line ant build
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Codecoverage (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Schovanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 16:18 UTC by whfolsom4
Modified: 2009-06-09 16:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whfolsom4 2009-06-09 16:19:03 UTC
Apologies if this is a duplicate of Issue 70874, however it is difficult to tell because that issue is very terse and
anyway seems to apply to Netbeans 5.0.

There are two issues with the current codecoverage plugin.  The first is that simply closing and reopening the project
disables code coverage as of Netbeans 6.5.  The second is that the variable 'file.reference.emma.jar', which does not
appear anywhere I could locate in the Netbeans GUI, is overwritten with the location of the plugin's copy of emma.jar
(.netbeans/6.5/modules/ext/emma.jar) if changed.  This variable is defined by the codecoverage plugin in the
.../nbproject/private/private.properties file. If it is not changed, the Netbeans-generated build.xml, which is
otherwise fine, cannot run the tests unless the target platform also has the Netbeans codecoverage plugin installed in
the exact same location.

The only workaround I could find was to install an otherwise-unused copy of the Netbeans plugin on my hudson server so
that .../.netbeans/6.5/modules/ext.emma.jar could be loaded by the unit tests.  Otherwise, whenever a developer reopens
the project, the file .../nbproject/private/private.properties is automatically updated by the codecoverage plugin to
point to .../.netbenas/6.5/modules/ext/emma.jar, and the tests fail on huston because emma's RT class cannot be found if
this private.properties file is accidentally checked in.