Sharing JSPs in a multi web project

(Carsten Spräner) #1

Hi all, i’m on my way to migrate a project family from ant to gradle. The family of projects has a common base project which provides JSP-snippets to the derrived projects. The task is to copy all JSPs from the common project in to the derrived (special) project. I tested it with two projects like this:

|— common
| |-src/main/webapp/title.jsp
| |-build.gradle
| |-settings.gradle
|— special
|-src/main/webapp/index.jsp (includes title.jsp from common)

If i start build in special the resulting war file only contains a common.jar and an index.jsp. But no title.jsp.
Is there a simple way to perform this? I couldn’t find an answer yet.

Thx for any help