Re: JUnit module projectization

Svata Dedic <[email protected]> Tue, 17 Jun 2003 20:41:31 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Tomas Zezula wrote:
> No, this is not allowed behaviour,
> according to the UI spec all the Java sources MUST be mixed under the 
> Packages node.

For more details, please see 
<http://lit.fsid.cvut.cz/~svata/nb4dev/packages.html>

>  From API point of view,  it is nearly possible, multiple CU and 
> multiple BT are supported by Java module,
> 

The model of a Java project was designed with this use case on mind 
specifically. So implementation-wise, you may use APIs to set up the 
project to build correctly.

Hovewer, depending on how closely will the UI spec follow use cases, the 
user may not be able to:
- see the project contents correctly (mixed content in Packages)
- set up build paths for tests and main sources differently (if a 
classpath is customized per-project only)
- create additional "javac" build targets (there was an idea to have 
only one per project)
...

>> I was thinking about the following way (but I don't know if this is 
>> possible). Currently there is Sources node with Packages subnode. 
>> Ideally I would like to see something like 'Unit Tests' or just 
>> 'Tests' node on the same level as Packages node is. Tests subnode 
>> could then contain just tests. The UI could look something like this:
>>
>> Projects
>> |- MyProject (active)
>>    |- Sources
>>       |- Packages
>>          |- my.package
>>             |- HelloWorld
>>       |- Tests
>>          |- my.package
>>             |- HelloWorldTest
>>
Enabling this layout is one of the target features of NetBeans for 
Developers.

-Svata