Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gopi Chand Maddula
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a real scenario? I find it unreasonable...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic