|
|
@ -3,32 +3,22 @@ tasks.withType(JavaCompile){ |
|
|
|
options.encoding = "UTF-8" |
|
|
|
options.encoding = "UTF-8" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def basicDir="../../" |
|
|
|
def basicDir="../" |
|
|
|
def libDir="${basicDir}/finereport-lib-stable" |
|
|
|
def libDir="${basicDir}/lib" |
|
|
|
//获取什么分支名 |
|
|
|
|
|
|
|
FileTree files =fileTree(dir:"./",include:"build.*.gradle") |
|
|
|
|
|
|
|
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ("\\")) |
|
|
|
|
|
|
|
def branchName=buildDir.substring(buildDir.lastIndexOf ("\\")+1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task appletJar<<{ |
|
|
|
task appletJar<<{ |
|
|
|
|
|
|
|
|
|
|
|
ant{ |
|
|
|
ant{ |
|
|
|
mkdir(dir:"./tmp") |
|
|
|
mkdir(dir:"./tmp") |
|
|
|
mkdir(dir:"build/classes/") |
|
|
|
mkdir(dir:"build/classes/") |
|
|
|
copy(todir:"build/classes/"){ |
|
|
|
copy(todir:"build/classes/"){ |
|
|
|
fileset(dir:"${basicDir}/finereport-core-stable/${branchName}/build/classes/main") |
|
|
|
fileset(dir:"${basicDir}/core/build/classes/main") |
|
|
|
|
|
|
|
fileset(dir:"${basicDir}/chart/build/classes/main") |
|
|
|
fileset(dir:"${basicDir}/finereport-chart-stable/${branchName}/build/classes/main") |
|
|
|
fileset(dir:"${basicDir}/report/build/classes/main") |
|
|
|
|
|
|
|
fileset(dir:"${basicDir}/platform/build/classes/main") |
|
|
|
fileset(dir:"${basicDir}/finereport-report-stable/${branchName}/build/classes/main") |
|
|
|
fileset(dir:"${basicDir}/performance/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:"${basicDir}/finereport-platform-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:"${basicDir}/finereport-performance-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
unjar(src:"${libDir}/${branchName}/3rd.jar",dest:"./tmp") |
|
|
|
unjar(src:"${libDir}/3rd.jar",dest:"./tmp") |
|
|
|
unjar(src:"${libDir}/${branchName}/servlet-api.jar",dest:"./tmp") |
|
|
|
unjar(src:"${libDir}/servlet-api.jar",dest:"./tmp") |
|
|
|
jar(jarfile:"build/libs/fr-applet-8.0.jar"){ |
|
|
|
jar(jarfile:"build/libs/fr-applet-8.0.jar"){ |
|
|
|
fileset(dir:"build/classes"){ |
|
|
|
fileset(dir:"build/classes"){ |
|
|
|
exclude(name:"*.*") |
|
|
|
exclude(name:"*.*") |
|
|
|