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?
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.