views:

208

answers:

1

I've found similar questions to this problem but they don't really satisfy my situation. My code is apart of a single "project" in an SVN repository. The "project" includes not just Java code, but also C/C++/Cuda. I simply want to check the entire repository out but only work on the Java code (that runs from an Ant build).

I'm looking for a way in Eclipse (using Subclipse) to have this code as a Java project, while "ignoring" the other stuff.

I edited the ".project" file to recognize it as a Java project, but only the <natures> tag and not <buildSpec>, since the Java code is compiled from an Ant build. This works to a degree but Content Assist doesn't work.

The code layout in the repository is something like this:

root/  
    backend/ (C++/CUDA)  
    frontend/ (Java here)
    jar/ (runnable jar is here)
    build.xml
+1  A: 

You could add a .project and .classpath file to the frontend folder and "import" it as a java project. It will show up as another project in the workspace and you'll have full java features.

Chris Nava
Great, this does precisely what I want. Thanks!
bsharrow4