Sharing directories for C and Java Projects [message #114191] |
Thu, 05 August 2004 11:26  |
Eclipse User |
|
|
|
Originally posted by: makwana.semandex.net
All,
I have my project with functionally same C and Java code.
The directory structure in our CVS is
Project/src/c
Project/src/java
Project/bin
Project/etc
and other folders.
I want to have two separate projects in Eclipse for them. If I create a
Java project with Project as top level folder then I cannot create
another C project with that or anyother folder underneath, as
"top-level" folder. They seem to clash because of .project, .cdtproject
and other files.
Is there any other way to accomplish this ? (I know I can put
Project/src/c/ and Project/src/java as top level folders but my top
level Project/Makefile, an entry point for C build, would not be called
by CDT)
Thanks in advance,
-Jay
|
|
|
Re: Sharing directories for C and Java Projects [message #114426 is a reply to message #114191] |
Thu, 05 August 2004 17:45   |
Eclipse User |
|
|
|
Once you have added a Java project, you can
assign a "C" nature to it as follows:
<project>
New
Other...
C
Convert to a C/C++ Make Project
[Select C Project]
Now, the project will have both a Java and a C nature. It will
show up in both in Java (JDT) and C (CDT) perspectives.
Hope this helps.
Rajive
On Thu, 05 Aug 2004 11:26:29 -0400, Jay Makwana wrote:
> All,
>
> I have my project with functionally same C and Java code. The directory
> structure in our CVS is Project/src/c
> Project/src/java
> Project/bin
> Project/etc
> and other folders.
>
> I want to have two separate projects in Eclipse for them. If I create a
> Java project with Project as top level folder then I cannot create another
> C project with that or anyother folder underneath, as "top-level" folder.
> They seem to clash because of .project, .cdtproject and other files.
>
> Is there any other way to accomplish this ? (I know I can put
> Project/src/c/ and Project/src/java as top level folders but my top level
> Project/Makefile, an entry point for C build, would not be called by CDT)
>
> Thanks in advance,
> -Jay
|
|
|
Re: Sharing directories for C and Java Projects [message #114583 is a reply to message #114426] |
Fri, 06 August 2004 11:37  |
Eclipse User |
|
|
|
Originally posted by: makwana.semandex.net
Thanks.
That works.
Rajive Joshi wrote:
> Once you have added a Java project, you can
> assign a "C" nature to it as follows:
>
> <project>
> New
> Other...
> C
> Convert to a C/C++ Make Project
> [Select C Project]
>
> Now, the project will have both a Java and a C nature. It will
> show up in both in Java (JDT) and C (CDT) perspectives.
>
> Hope this helps.
>
> Rajive
>
> On Thu, 05 Aug 2004 11:26:29 -0400, Jay Makwana wrote:
>
>
>>All,
>>
>>I have my project with functionally same C and Java code. The directory
>>structure in our CVS is Project/src/c
>>Project/src/java
>>Project/bin
>>Project/etc
>>and other folders.
>>
>>I want to have two separate projects in Eclipse for them. If I create a
>>Java project with Project as top level folder then I cannot create another
>>C project with that or anyother folder underneath, as "top-level" folder.
>>They seem to clash because of .project, .cdtproject and other files.
>>
>>Is there any other way to accomplish this ? (I know I can put
>>Project/src/c/ and Project/src/java as top level folders but my top level
>>Project/Makefile, an entry point for C build, would not be called by CDT)
>>
>>Thanks in advance,
>>-Jay
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02908 seconds