aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Gradle Multi Project War Seperate WEB-INF directory per EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Gradle Multi Project War Seperate WEB-INF directory per EAR" Watch "Gradle Multi Project War Seperate WEB-INF directory per EAR" New topic
Author

Gradle Multi Project War Seperate WEB-INF directory per EAR

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

I have a project that contains a Gradle build.gradle build file,

Within the build.gradle file there are multiple projects,

The build.gradle file builds:;
* a WAR file
* 2 EAR files that contain the built WAR file

The WAR file within the 2 EAR files have a different web.xml file,

But when the WAR file is built it contains the same web.xml file and then the 2 EAR files have the same web.xml within the WAR file,

Is there a way to set the webAppDirName within the WAR plugin per EAR file so that the web.xml is a different xml file per EAR,

Thanks in Advance,

Niall
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Gradle Multi Project War Seperate WEB-INF directory per EAR