Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Sharing directories for C and Java Projects
Sharing directories for C and Java Projects [message #114191] Thu, 05 August 2004 11:26 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Eclipse 3.0.0 and cdt 2.0.0: managed make
Next Topic:Could use a little mental orientation
Goto Forum:
  


Current Time: Sun May 11 15:34:03 EDT 2025

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

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

Back to the top