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 36338 - Simplify projects support for xtests
Summary: Simplify projects support for xtests
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-09-29 17:04 UTC by Jan Pokorsky
Modified: 2004-04-19 16:20 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 Jan Pokorsky 2003-09-29 17:04:33 UTC
It would be great if the framework would provide
ProjectsDecoratorHid.java as a friend api. Other
modules could build it through the <ant> task and
put it to their classpath instead of copying the
source file from the 'HOW-TO Develop Netbeans
Projects' page. IMHO it would significantly
simplify to keep the file up to date and we would
have one place for setting up the projects
environment of xtests.

A similar solution is currently used for patched
classes. But it has not been mentioned in the
how-to document yet.
Comment 1 Vitezslav Stejskal 2003-09-29 19:09:09 UTC
Agreed. Ideally this support should end up in junit module alongside
the NbTestCase and other stuff. But it's project specific which might
be a problem. Anyway, in the meantime I will create
projects/core/test/lib and put PDH in there. There will be also ant
script which you can run to compile this test library.
Comment 2 Vitezslav Stejskal 2003-10-01 00:44:09 UTC
Done. Use the org.netbeans.test.projects.MakeupModule class from
<cvs>/projects/core/test/libs/src root. There is ant script
<cvs>/projects/core/test/libs/build.xml which targets 'netbeans' and
'clean' can be used to build/clean the test/libs classes. Simply call
them from your tests script and add the
<cvs>/projects/core/test/libs/src folder on compilation and execution
classpath of your tests.

I will also update the cookbook to reflect this change.
Comment 3 Jan Pokorsky 2003-10-01 17:41:01 UTC
Verified, it works.
Comment 4 Jan Becicka 2003-11-25 14:21:46 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.