aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Multiple projects in SVN but single project in local Eclipse IDE. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Multiple projects in SVN but single project in local Eclipse IDE." Watch "Multiple projects in SVN but single project in local Eclipse IDE." New topic
Author

Multiple projects in SVN but single project in local Eclipse IDE.

Gopi Chand Maddula
Ranch Hand

Joined: May 11, 2010
Posts: 40

Hi JavaRanch,

I have a scenario working with web projects. I am trying to work on trunk code in SVN. I have a requirement that the source code(i.e., all java files) should be under one project and all the web related files(i.e., jsps, html etc) should be in another project. But while working i should have to checkout the both projects as a single project in my local system. Is there any possibility to maintain two projects in repository and single project in my local. Whenever i commit my files it should reflect the respective project in repository. And when i want to build the project it should provide me a WAR file considering both the projects in the Repository.

Can anybody please let me know how should i proceed to achieve this requirement?

Thanks in Advance.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Try this: Use two projects in Eclipse. Build a JAR from the Java source files. Tell Eclipse that the WAR project depends on the JAR project.

By the way, who gave that requirement and what was the reasoning behind it? If the Java classes are utility classes, then I could understand this requirement. But if the Java classes are servlets, or backing beans for JSF, or other user interface related classes then this requirement makes no sense.


JBoss In Action
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Is this a real scenario? I find it unreasonable...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple projects in SVN but single project in local Eclipse IDE.
 
Similar Threads
Version Control
Code Respository Structure
Multilple repositories
Questions about DVCS
Build project from the Local Repository instead of Remote Repository