|
|
@ -38,11 +38,20 @@ dependencies{ |
|
|
|
testCompile 'junit:junit:4.12' |
|
|
|
testCompile 'junit:junit:4.12' |
|
|
|
} |
|
|
|
} |
|
|
|
//复制非.java文件到classes文件夹下参与打包 |
|
|
|
//复制非.java文件到classes文件夹下参与打包 |
|
|
|
task copyFile(type:Copy,dependsOn:compileJava){ |
|
|
|
|
|
|
|
copy{ |
|
|
|
//指明无法编译文件所在路径 |
|
|
|
from ("${srcDir}/src"){ |
|
|
|
def dataContent ={def dir -> |
|
|
|
|
|
|
|
copySpec{ |
|
|
|
|
|
|
|
from ("${dir}"){ |
|
|
|
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
|
|
|
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task copyFile(type:Copy,dependsOn:compileJava){ |
|
|
|
|
|
|
|
copy{ |
|
|
|
|
|
|
|
with dataContent.call("${srcDir}/src") |
|
|
|
|
|
|
|
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') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|