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 33870 - BuildTargetOutputFolder API nonsense
Summary: BuildTargetOutputFolder API nonsense
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-05-23 16:44 UTC by Adam Sotona
Modified: 2004-04-19 16:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Sotona 2003-05-23 16:44:44 UTC
BuildTargetOutputFolder is not set to valid URL by
default when called
BuildTargetDescriptor.getOutputFolder(Configuration).
At this time it is impossible to affect this URL
or create a new instance with different URL
because the Configuration passed as an argument is
locked !

It is almost impossible to manually maintain
creation of BuildTargetOutputFolder instances for
all Configurations before they are used and locked.

What was designed sollution of this problem ?
Comment 1 Vitezslav Stejskal 2003-05-26 13:26:59 UTC
The output URL should be set at the time when build target is created
(e.g. from tenmplate). The output location URL is usually the
information gathered by the wizard. The build process should only read
this setting (URL) and physically create the output folder if it
doesn't exist yet. It can't change the output location URL since it
doesn't know how to set it (this info has to be enetered by the user).

Hopefully this helped. If not, describe your usecase please.
Comment 2 Adam Sotona 2003-06-10 15:04:02 UTC
BuildTargetOutputFolder URL must be set for all Configurations during
the creation process to assure funkcionality.
That should be simplified somehow.
Comment 3 Vitezslav Stejskal 2003-06-12 17:31:42 UTC
Agreed. I think BTOF.ctor could accept additional parameter (URL) -
the default value of outputFolderName property.
Comment 4 Dusan Balek 2003-07-07 13:21:37 UTC
A special "MultiWriteContext" created.
All settings written via this context are stored into
all available Configurations of corresponding ConfigurationTypes.
See projects.ide.api.examples for more details.
Comment 5 Jan Becicka 2003-11-25 14:03:43 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 VERIFIED --->
Comment 6 Jan Becicka 2003-11-25 14:12:52 UTC
---> CLOSED