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

Summary: Simplify projects support for xtests
Product: projects Reporter: Jan Pokorsky <jpokorsky>
Component: Generic InfrastructureAssignee: Vitezslav Stejskal <vstejskal>
Status: CLOSED FIXED    
Severity: blocker Keywords: API
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.