Bug 4974 - Set classpath / output location should be one operation
Summary: Set classpath / output location should be one operation
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-15 06:06 EDT by Martin Aeschlimann CLA
Modified: 2002-01-11 09:22 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2001-10-15 06:06:59 EDT
204:
1. create a project with 'src' as source folder and 'bin' as output location.
2. in the project properties change the setting to use the project as source 
folder and the project as output location. Press Ok
You get the error message:
'Cannot nest outputfolder /xy in source folder /xy/src'

The problem is that setting outputlocation and classpath are two operations.
By setting the first, an illegal state is created.

-> Like the validation (checking classpath and outputlocation at once), the 
setting of classpath / output location should be offered as one operation.

Note that the error message is strange. I guess it should say: '/xy/src' can 
not be nested in '/xy'
Comment 1 Philipe Mulet CLA 2001-10-22 04:44:46 EDT
Should add a new API for setting both (setOutputLocation0 + setRawClasspath).
Comment 2 Philipe Mulet CLA 2001-11-22 11:18:58 EST
Adding IJavaProject#setRawClasspath(IClasspathEntry[]newClassPath , IPath 
newOutputLocation, IProgressMonitor)

allowing to initialize both at the same time.

Note: the invalid error message got fixed as well.
Comment 3 Philipe Mulet CLA 2001-11-23 05:49:15 EST
Fixed
Comment 4 Martin Aeschlimann CLA 2001-11-30 08:59:59 EST
adopted jdt code to use new API