Adding JavaNature to project adds nested folder structure to project [message #157795] |
Fri, 07 May 2004 16:24  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.06795 seconds