Bug 28531 - Classpath Entry: Output folder can not be set to project
Summary: Classpath Entry: Output folder can not be set to project
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-17 11:35 EST by Martin Aeschlimann CLA
Modified: 2003-02-07 11:01 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 2002-12-17 11:35:18 EST
20021216
1. create new project
2. source folder on project
3. set the source folder's output folder also to the project
src-entry:
 /proj1
   output folder: /proj1
default output location:
 /proj/bin
4. ok
5. reopen the build paths dialog: source folder's output location is null

setRawClasspath contains the output folder path.
A getRawClasspath just following still contains it, but when reopening the 
wizard, the getRawClasspath has a 'null' value for the output folder.
Comment 1 Jerome Lanneluc CLA 2002-12-17 13:17:59 EST
Martin, isn't it a dup of bug 28463?
Comment 2 Philipe Mulet CLA 2002-12-17 14:43:00 EST
.classpath file looks fine. Sounds like a dup of UI bug.
Comment 3 Martin Aeschlimann CLA 2002-12-18 03:41:50 EST
I fixed bug 28463, but then I saw this problem.
the created .classfile is
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry excluding="src/" kind="src" output="" path=""/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

Shouldn't the output be "proj", or is it also a project relative path? If it 
is, I guess the problem is to know if "" means 'project' or 'no output folder 
set'
Comment 4 Philipe Mulet CLA 2002-12-18 04:15:41 EST
It is a project relative path. 
Null should be answered when no output is used.

Need to double check. Not critical.
Comment 5 Jerome Lanneluc CLA 2003-01-10 05:24:29 EST
When reading the .classpath file, we used to consider that the "output" 
attribute if empty was equivalent to no attribute.

Fixed ClasspathEntry.elementDecode to check if the attribute exists instead.
Added ClasspathTests.testReadEmptyCustomOutput().
Comment 6 David Audel CLA 2003-02-07 11:01:43 EST
Verified.