|
@@ -166,7 +166,7 @@ dependencyManagement {
|
|
|
// 下面是配置文件选择
|
|
|
/*******************************************************/
|
|
|
|
|
|
-sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-prod']
|
|
|
+sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-test']
|
|
|
//ext.needTest = 'true'
|
|
|
|
|
|
task doWar{
|
|
@@ -197,7 +197,7 @@ task buildProdWar {
|
|
|
// 打测试环境包
|
|
|
task buildTestWar {
|
|
|
doFirst {
|
|
|
- sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-prod']
|
|
|
+ sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-test']
|
|
|
test.onlyIf {
|
|
|
project.hasProperty("needTest")
|
|
|
}
|