Browse Source

更改构建文件

master
sunmondong 8 years ago
parent
commit
5532b34c58
  1. 19
      designer_form/build.9.0.gradle

19
designer_form/build.9.0.gradle

@ -38,11 +38,20 @@ dependencies{
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
//.java文件到classes文件夹下参与打包 //.java文件到classes文件夹下参与打包
//
def dataContent ={def dir ->
copySpec{
from ("${dir}"){
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html'
}
}
}
task copyFile(type:Copy,dependsOn:compileJava){ task copyFile(type:Copy,dependsOn:compileJava){
copy{ copy{
from ("${srcDir}/src"){ with dataContent.call("${srcDir}/src")
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' with dataContent.call("${srcDir}/../designer/src")
}
into 'build/classes/main' into 'build/classes/main'
} }
@ -61,6 +70,10 @@ task compressJS{
include (name:'**/*.js') include (name:'**/*.js')
include (name:'**/*.css') include (name:'**/*.css')
} }
fileset (dir:"${srcDir}/../designer/src"){
include (name:'**/*.js')
include (name:'**/*.css')
}
} }
} }

Loading…
Cancel
Save