Bug 39669 - bug in "source and output folder", should be a simple fix
Summary: bug in "source and output folder", should be a simple fix
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 00:22 EDT by Xiaozheng Ma CLA
Modified: 2004-05-13 07:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaozheng Ma CLA 2003-07-07 00:22:00 EDT
version: 2.1 M1
Build id: 200306051737

Linux RH7.3

I overwrite the source and output folder" under "window->preferences->java->new
project->folders radio button" to my own folders instead of default
ECLIPSE_HOME/workspace/  to seperate src from class files. What I input is 
for src: /home/xzma/Workspace/sources
for class: /home/xzma/Workspace/classes
I also change the eclipse working dir to /home/xzma/Workspace instead of default
EcLIPSE_HOME/workspace.
I was expecting the files created in /home/xzma/Workspace/sources for source
files and /home/xzma/Workspace/classes for classs files.

However, what I got is under ECLIPSE_HOME/workspace/ it creats recursively
home/xzma/Workspace/sources/my_project/*.java for source. for class, the same.
Comment 1 Xiaozheng Ma CLA 2003-07-07 01:24:11 EDT
One thing to correct:

I made one thing wrong in the previous description, I actually forget to change
the project folder to /home/xzma/Workspace. But the bug is still there. meaning
that when creating file for source or class file, the tool should not create it
blindly under the project workspace. 

Secondly, Eclipse, version 2.1, Build id: 200306051737 does not allow creating
more that one porjects under the same dir other than $ECLIPSE_HOME/workspace
(when one tries to assign the dir, the error says: ***(the dir) overlaps. The
opposit could be a feathure request. So that it provides more flexible. Further,
if the dir is not $ECLIPSE_HOME/workspace, eclipse does not create the dir using
the project name as it does sweetly under $ECLIPSE_HOME/workspace. Why should it
 be this way?? Lucky, when it export to file system, the dir with project name
is created and make it has nice dir structure.

Xiaozheng
Comment 2 Philipe Mulet CLA 2004-05-13 07:50:49 EDT
You can use linked folders to mount arbitrary directories into Eclipse 
resource tree. Then if properly configured, you may have generated files be 
located outside the Eclipse internal filesystem.

When creating a folder in Eclipse navigator, look into "Advanced", right below 
the folder name.

Closing.