Change proejct type on the fly? [message #156597] |
Thu, 13 November 2003 22:30  |
Eclipse User |
|
|
|
Originally posted by: s_s_patil.hotmail.com
Can I change the type of a project after its creation? I believe it may
have something to do with associating new plug-ins (and natures!) with the
project. Not sure how to get this done though?
Specifically - when I check out a project from a CVS repository, a simple
project gets created. In order to compile the code (it's Java), it seems
the project needs to be of "Java type". How do I now change the project
type without losing the CVS functionalities (compare with latest version,
etc)?
Thanks in advance
-- SP
|
|
|
|
Re: Change proejct type on the fly? [message #156661 is a reply to message #156597] |
Fri, 14 November 2003 04:31  |
Eclipse User |
|
|
|
"SP" <s_s_patil@hotmail.com> wrote in message
news:bp1i8d$n0c$1@eclipse.org...
>
> Can I change the type of a project after its creation? I believe it may
> have something to do with associating new plug-ins (and natures!) with the
> project. Not sure how to get this
Not sure if you want to do it through a UI or programaticaly. Through a UI,
it is not possible (I believe there's a feature request somewhere in
bugzilla). Programaticaly, you need to set the description of the project
(see IProject.setDescription(...)).
> Specifically - when I check out a project from a CVS repository, a simple
> project gets created. In order to compile the code (it's Java), it seems
> the project needs to be of "Java type". How do I now change the project
> type without losing the CVS functionalities (compare with latest version,
> etc)?
If your project in the CVS repository was checked in without a .project
file, then when you check it out, just choose 'Check Out As...' and in the
New Project wizard choose 'Java project'.
Otherwise you can manually edit the .project file and add the following in
the projectdescription:
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
Jerome
|
|
|
Powered by
FUDForum. Page generated in 0.04980 seconds