Adding a project into an existing workspace via the command line shell [message #657071] |
Tue, 01 March 2011 14:06 |
Blacky Messages: 1 Registered: March 2011 |
Junior Member |
|
|
Hello,
I have a question about adding projects into an existing workspace in Eclipse.
(I'm using Eclipse with some plugins, if it is necessary to solve the problem I can list the plugins)
My problem is the following, I have an existing workspace and I want to add an existing Java file and project test.java into this workspace without launching Eclipse itself.
If I open Eclipse after doing that the project should already be added and it should appear in the projects list on the left.
What I did was to create two folders "src" and "bin" and added them to a folder called Test. I moved test.java into "src".
Then I created two files .classpath and .project
.project contains:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Test</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>mobius.escjava2.ui.autocheckEscjavaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>mobius.escjava2.ui.autocheckEscjavaNature</nature>
</natures>
</projectDescription>
and .classpath contains:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path=" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.inte rnal.debug.ui.launcher.StandardVMType/JavaSE-1.6 "/>
<classpathentry kind="src" path="/jmlspecs"/>
<classpathentry kind="output" path="bin"/>
</classpath>
I moved the whole folder "Test" into the directory of the existing workspace.
Now I launched eclipse but the project didn't appear, also after pressing "Reload" nothing happened.
What did I do wrong, or is it even possible to add projects to workspaces via the command line?
I would be happy if someone could help me.
Blacky
|
|
|
Powered by
FUDForum. Page generated in 0.02853 seconds