|
|
@ -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') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|