Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Java Project : adding src directory
Java Project : adding src directory [message #144984] Thu, 16 October 2003 11:17 Go to next message
Eclipse UserFriend
Originally posted by: mchacher.yahoo.fr

I'm trying to use the example of eclipse JDT documentation to change the
source path of a Java Project.
I want to create an src folder and add it to the source entry :
IClassPathEntry srcEntry = JavaCore.newSourceEntry(new
Path("/MyProject/src");
However an exception is throwed with the following message :
JavaModel Exception : Java Model Status [ Cannot nest 'MyProject/src"
inside "'MyProject'. To enable the nesting exception exclude 'src/' from
'Project'.]

Any Idea ?

Thank you for your help.
Re: Java Project : adding src directory [message #145605 is a reply to message #144984] Fri, 17 October 2003 07:04 Go to previous message
Eclipse UserFriend
You must be getting this exception when invoking
IJavaProject.setRawClasspath(IClasspathEntry[], ...).
Ensure that you don't include a source entry whose path is '/MyProject'.
Or if you wish to keep the project source entry, add an exclusion pattern
that excludes '/MyProject/src'.

Jerome

"TransparentReady" <mchacher@yahoo.fr> wrote in message
news:bmmcpk$qqo$1@eclipse.org...
> I'm trying to use the example of eclipse JDT documentation to change the
> source path of a Java Project.
> I want to create an src folder and add it to the source entry :
> IClassPathEntry srcEntry = JavaCore.newSourceEntry(new
> Path("/MyProject/src");
> However an exception is throwed with the following message :
> JavaModel Exception : Java Model Status [ Cannot nest 'MyProject/src"
> inside "'MyProject'. To enable the nesting exception exclude 'src/' from
> 'Project'.]
>
> Any Idea ?
>
> Thank you for your help.
>
>
>
Previous Topic:Changing IDE background colour under Motif
Next Topic:Editor Code Annotations
Goto Forum:
  


Current Time: Fri May 30 02:10:30 EDT 2025

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

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

Back to the top