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 30474 - API for managing sources roots and compilation targets
Summary: API for managing sources roots and compilation targets
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: API
Depends on:
Blocks: 28652 28653 30410
  Show dependency tree
 
Reported: 2003-01-29 13:37 UTC by Pavel Buzek
Modified: 2007-09-26 09:14 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 Pavel Buzek 2003-01-29 13:37:33 UTC
This API should make it possible to create a folder and add it to the java sources roots. It 
should also make it possible to create a comile classes target and set target folder for it.
Comment 1 Pavel Buzek 2003-01-29 13:39:50 UTC
Currently I only need to use this API in new project wizard. Perhas it would be an alternative to allow 
customizing java project wizard via properties (?)
Comment 2 Tomas Zezula 2003-02-06 15:34:33 UTC
Implemented.
Comment 3 Pavel Buzek 2003-02-07 13:39:34 UTC
So how do I set the target folder, please?
Should not there be a method CU.setOutputLocations ()? Or add/remove? Or (maybe the best option) support 
o.n.api.compilation.BuildTargetDescriptor?
Comment 4 Tomas Zezula 2003-02-10 16:02:07 UTC
CompilationUnit cu = ...;
COnfiguration cfg = ...;
ProjectMember buildTarget = cu.getBuildTarget();
if (buildTarget == null)
  continue;    // Skeep NullCU
BuildTargetDescriptor btd = (BuildTargetDescriptor)
buildTarget.getEnvironment().lookup (BuildTargetDescriptor.class);
btd.getOutputFolder (cfg).setOutputFolderName (url);
Comment 5 Pavel Buzek 2003-07-02 14:07:23 UTC
i've verified all these issues
Comment 6 Pavel Buzek 2003-07-02 14:18:22 UTC
closing all my verified issues