Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Mutliple Source Folders
Mutliple Source Folders [message #63612] Fri, 20 June 2003 21:11 Go to next message
Eclipse UserFriend
Originally posted by: thomas.jackson.microfocus.com

Hi all.

I am hoping someone can give me some information. I have muliple source
folders like below:

maindir
|
|----- generated
| |
| |-----src
|
|----- src
|
|----- testsrc


I keep my JUnit tests in TESTSRC, a ANTLR grammar resised in the SRC,
and when it compiles the grammar, it generates the files in the same
tree structure under GENERATED. Now to the problem, the content assist
doesn't seem to be resolving correct. When I create a JUnit test to
uses a parser which resides in the GENERATED folder, I get an error upon
creating the IMPORT statement saying that class doesn't exist. It seems
as though it only uses SRC to try and do content assist.

Has anyone ran across this before?

Thanks
Thomas
Re: Mutliple Source Folders [message #63635 is a reply to message #63612] Fri, 20 June 2003 21:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

You need to add "generated/src" as a source folder so that the java
files in that directory get compiled into .class files in your output
directory AND also this tell the JDT that there are source available in
there for indexing and code assist.

Rich
Re: Mutliple Source Folders [message #63749 is a reply to message #63635] Fri, 20 June 2003 23:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas.jackson.qrowireless.net

I forgot to mention that I do have it added to the build path as a java
source folder and it doesn't seem to find it.
Re: Mutliple Source Folders [message #64724 is a reply to message #63612] Mon, 23 June 2003 00:09 Go to previous messageGo to next message
Michael Brennan is currently offline Michael BrennanFriend
Messages: 6
Registered: July 2009
Junior Member
Thomas Jackson wrote:

> Hi all.

> I am hoping someone can give me some information. I have muliple source
> folders like below:

> maindir
> |
> |----- generated
> | |
> | |-----src
> |
> |----- src
> |
> |----- testsrc


> I keep my JUnit tests in TESTSRC, a ANTLR grammar resised in the SRC,
> and when it compiles the grammar, it generates the files in the same
> tree structure under GENERATED. Now to the problem, the content assist
> doesn't seem to be resolving correct. When I create a JUnit test to
> uses a parser which resides in the GENERATED folder, I get an error upon
> creating the IMPORT statement saying that class doesn't exist. It seems
> as though it only uses SRC to try and do content assist.

> Has anyone ran across this before?

I haven't run across your specific problem, but I have had anomalies when
I've used hierarchically nested source folders before. Some things in
Eclipse seem to handle it just fine, some seem to not work quite right.
I've quit doing that and just keep my source folders at the root level of
my project folder.

I've also had many issues with the indexing for content assist. In
particular, I find "ghost" references left behing to deleted, moved, or
renamed classes. I've taken to going into the
"/.metadata/.plugins/org.eclipse.jdt.core" in my workspace, occasionally,
and just deleting all of the index files to clean things up.

I don't know if any of this helps or has anything to do with your problem,
though.
Re: Mutliple Source Folders [message #65123 is a reply to message #63749] Mon, 23 June 2003 11:18 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
We're not aware of such a problem.

Please enter a bug report against JDT/Core with steps to reproduce the
problem and the build number you're using.

Jerome

"Thomas Jackson" <thomas.jackson@qrowireless.net> wrote in message
news:bd06ns$irf$1@rogue.oti.com...
> I forgot to mention that I do have it added to the build path as a java
> source folder and it doesn't seem to find it.
>
Re: Mutliple Source Folders [message #66457 is a reply to message #65123] Tue, 24 June 2003 23:05 Go to previous message
Eclipse UserFriend
Originally posted by: thomas.jackson.qrowireless.net

It turns out not to be a bug, but a user error. I had an output folder
incorrect on the antlr grammar file.

Thanks for the help!

Thomas
Previous Topic:Copying files from a plug-in subdirectory to a project subdirectory
Next Topic:[JDT_UI]Custom IMarkers visible in CompilationUnitEditor
Goto Forum:
  


Current Time: Tue Jul 16 06:49:44 GMT 2024

Powered by FUDForum. Page generated in 0.03495 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top