WAR plugin creating 2 WEB-INF directory in archived WAR

plugins

(Gautam) #1

I am using war plugin with Gradle 2.11 with following configuration
war {
exclude(’/assets/node_modules/*’)
exclude(’
/assets/Gruntfile.js’)
exclude(’/assets/package.json’)
exclude(’
/assets/js//*.js’)
exclude(’
/assets/css//*.css’)
from("${project.webAppDirName}/assets/js") {
include "
/*.min.js"
into “assets/js”
}

from("${buildDir}/grunt/js") {
include "**/*.min.js"
into “assets/js”
}

from("${project.webAppDirName}/assets/css") {
include "**/*.min.css"
into “assets/css”
}

from("${buildDir}/grunt/css") {
include "**/*.min.css"
into “assets/css”
}
}

When I am extracting the archieved WAR it has 2 WEB-INF directory one with lib and classes and one with just web.xml.


(Gautam) #2

Figured that I had a typo. One of the WEB-INF was with _(underscore) instead of -(hyphen).