|
|
|
@ -32,15 +32,20 @@ compile fileTree(dir:'../../',include:'finereport-*-stable/**/*.jar')
|
|
|
|
|
testCompile 'junit:junit:4.12' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//指明无法编译文件所在路径 |
|
|
|
|
def dataContent ={def dir -> |
|
|
|
|
copySpec{ |
|
|
|
|
from ("${dir}"){ |
|
|
|
|
exclude '**/.setting/**','.classpath','.project','**/*.java','**/*.db','**/*.g','**/package.html' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//将非.java文件复制到classes文件夹下 参与打包 |
|
|
|
|
task copyFile(type:Copy,dependsOn:compileJava){ |
|
|
|
|
copy{ |
|
|
|
|
from ("${srcDir}/src"){ |
|
|
|
|
exclude '**/*.java' |
|
|
|
|
} |
|
|
|
|
from ("${srcDir}/../designer/src"){ |
|
|
|
|
exclude '**/*.java' |
|
|
|
|
} |
|
|
|
|
with dataContent.call("${srcDir}/src") |
|
|
|
|
with dataContent.call("${srcDir}/../designer/src") |
|
|
|
|
into ('build/classes/main') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -54,14 +59,15 @@ task compressJS{
|
|
|
|
|
fileset(dir:'../../finereport-build-stable',includes:'**/*.jar') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", , charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){ |
|
|
|
|
ant.yuicompress(linebreak:"500",warn:"false", munge:"yes",preserveallsemicolons:"false", charset:"utf-8",encoding:"utf-8",outputfolder:'build/classes/main'){ |
|
|
|
|
fileset (dir:"${srcDir}/src"){ |
|
|
|
|
include (name:'**/*.js') |
|
|
|
|
include (name:'**/*.css') |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
fileset (dir:"${srcDir}/../designer/src"){ |
|
|
|
|
include (name:'**/*.js') |
|
|
|
|
|
|
|
|
|
include (name:'**/*.css') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|