Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Adding JavaNature to project adds nested folder structure to project
Adding JavaNature to project adds nested folder structure to project [message #157795] Fri, 07 May 2004 16:24 Go to next message
Eclipse UserFriend
Originally posted by: becker.kestrel.edu

Hi
I am creating a new project with my own wizard and project nature. I am
using Eclipse 3.0M8
I want this project to have my new nature and a java nature. I also want
to create three folders under my project. One of this folders should be the
folder where the java source code will be located.
When I assign the java nature to my project, Eclipse adds a nested
folder structure under the bin folder.
I would like to have something like:
myProject
src
bin
otherFolder
.project

and I am getting
myProject
src
bin
src
otherFolder
.project
otherFolder
.project

How can I avoid the creation of the nested folders? I traced my method
that adds the new directories but they are only called once and with the
project object as the parent. If I do not add the Java Nature, then the
folders are created correctly. Once I add the java nature I get this weird
folder structure.

I am also having problems configuring the project as a java project. I
would like the JDT to configure the project for me like it does when the
project is created using the new java project wizard. But the configuration
API is not available. I am using the

IProject project = workspaceRoot.getProject("ProjectName");
project.create(null); // Should it be called before the call to
JavaCore.createProject ???
project = JavaCore.createProject(project).getProject();


But the resulting project is not configured properly.
How can I get the project configured properly by jdt without having to
use the NewJavaProjectWizard??


Thank you
Marcel
Re: Adding JavaNature to project adds nested folder structure to project [message #157820 is a reply to message #157795] Fri, 07 May 2004 18:17 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You need to update the classpath so that you have src listed as the
source folder and project root removed as the source folder. It is
seeing the project root as the source folder. The project root as the
source folder is the default.


--
Thanks, Rich Kulp

Previous Topic:AST Tutorial
Next Topic:Debugging information
Goto Forum:
  


Current Time: Thu Jun 05 00:55:51 EDT 2025

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

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

Back to the top