Bug 52636 - source folder option not honored on CVS checkout
Summary: source folder option not honored on CVS checkout
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 10:17 EST by Jon Nall CLA
Modified: 2004-05-19 11:28 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 Jon Nall CLA 2004-02-20 10:17:03 EST
i don't know if this is a platform/CVS thing, or a JDT issue. if platform,
please reassign there as appropriate. 

i'm using 3.0-M7 on linux+gtk.                                                 
                                                                               
   i have a CVS project laid out as follows:
myproject/src/com/foobar/my/package/source.java
                                                                               
                                                    
in Windows->Preferences->Java->New Project i have selected:
Folders
Source folder name: src
Output folder name: bin

i'm having the following issue. when i check out myproject for cvs, i go to the
java perspective and have a hierarchy that looks like:
myproject
    src.com.foobar.my.package
                                                                               
                                                    
rather than:
myproject
    src
        com.foobar.my.package
                                                                               
                                                    
if i right click on myproject, choose Properties->Java Build Path and look
at the Source tab, i see that indeed myproject/src is listed. that's good.
i click OK and magically, the hierarchy changes to the expected:
myproject
    src
        com.foobar.my.package
                                                                               
                                                    
shouldn't this be automatic?

some notes:
- .project and .classpath are checked into CVS (and are pasted below)
- This behavior persists whether or not the "Automatically build on resource
modification" option is set.


====8<==== .project 8<====8<======8<======8<=======
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>myproject</name>
        <comment></comment>
        <projects>
                <project>projdep1</project>
                <project>projdep2</project>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.jdt.core.javabuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
</projectDescription>

====8<==== .project 8<====8<======8<======8<=======
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
        <classpathentry kind="src" path="src"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="src" path="/projdep1"/>
        <classpathentry kind="src" path="/projdep2"/>
        <classpathentry kind="output" path="bin"/>
</classpath>
Comment 1 Jerome Lanneluc CLA 2004-05-19 11:28:36 EDT
Cannot reproduce in I20040519. Please reopen if you still have the problem.