|
|
@ -1,71 +1,71 @@ |
|
|
|
apply plugin: 'java' |
|
|
|
apply plugin: "java" |
|
|
|
tasks.withType(JavaCompile){ |
|
|
|
tasks.withType(JavaCompile){ |
|
|
|
options.encoding = 'UTF-8' |
|
|
|
options.encoding = "UTF-8" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
def basicDir='../../' |
|
|
|
def basicDir="../../" |
|
|
|
def libDir='${basicDir}/finereport-lib-stable' |
|
|
|
def libDir="${basicDir}/finereport-lib-stable" |
|
|
|
//获取什么分支名 |
|
|
|
//获取什么分支名 |
|
|
|
FileTree files =fileTree(dir:'./',include:'build.gradle') |
|
|
|
FileTree files =fileTree(dir:"./",include:"build.gradle") |
|
|
|
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ('\\')) |
|
|
|
def buildDir=files[0].path.substring(0,files[0].path.lastIndexOf ("\\")) |
|
|
|
def branchName=buildDir.substring(build.DirlastIndexOf ('\\')+1) |
|
|
|
def branchName=buildDir.substring(build.DirlastIndexOf ("\\")+1) |
|
|
|
|
|
|
|
|
|
|
|
task appletJar<<{ |
|
|
|
task appletJar<<{ |
|
|
|
|
|
|
|
|
|
|
|
ant{ |
|
|
|
ant{ |
|
|
|
mkdir(dir:'${libDir}/tmp') |
|
|
|
mkdir(dir:"${libDir}/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}/finereport-core-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:'${basicDir}/finereport-chart-stable/${branchName}/build/classes/main') |
|
|
|
fileset(dir:"${basicDir}/finereport-chart-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:'${basicDir}/finereport-report-stable/${branchName}/build/classes/main') |
|
|
|
fileset(dir:"${basicDir}/finereport-report-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:'${basicDir}/finereport-platform-stable/${branchName}/build/classes/main') |
|
|
|
fileset(dir:"${basicDir}/finereport-platform-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
fileset(dir:'${basicDir}/finereport-performance-stable/${branchName}/build/classes/main') |
|
|
|
fileset(dir:"${basicDir}/finereport-performance-stable/${branchName}/build/classes/main") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
unjar(src:"${libDir}/3rd.jar',dest:'${libDir}/tmp') |
|
|
|
unjar(src:"${libDir}/3rd.jar",dest:"${libDir}/tmp") |
|
|
|
unjar(src:'${libDir}/servlet-api.jar',dest:'${libDir}/tmp') |
|
|
|
unjar(src:"${libDir}/servlet-api.jar",dest:"${libDir}/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:"*.*") |
|
|
|
exclude(name:'bin/*.*') |
|
|
|
exclude(name:"bin/*.*") |
|
|
|
exclude(name:'classes/**') |
|
|
|
exclude(name:"classes/**") |
|
|
|
exclude(name:'com/fr/schedule/**') |
|
|
|
exclude(name:"com/fr/schedule/**") |
|
|
|
exclude(name:'com/fr/cell/**') |
|
|
|
exclude(name:"com/fr/cell/**") |
|
|
|
exclude(name:'com/fr/dialog/**') |
|
|
|
exclude(name:"com/fr/dialog/**") |
|
|
|
exclude(name:'com/fr/view/**') |
|
|
|
exclude(name:"com/fr/view/**") |
|
|
|
exclude(name:'com/fr/web/**') |
|
|
|
exclude(name:"com/fr/web/**") |
|
|
|
exclude(name:'com/fr/fs/**') |
|
|
|
exclude(name:"com/fr/fs/**") |
|
|
|
exclude(name:'com/fr/design/**') |
|
|
|
exclude(name:"com/fr/design/**") |
|
|
|
exclude(name:'com/fr/start/**') |
|
|
|
exclude(name:"com/fr/start/**") |
|
|
|
exclude(name:'com/fr/process/**') |
|
|
|
exclude(name:"com/fr/process/**") |
|
|
|
} |
|
|
|
} |
|
|
|
fileset(dir:'${libDir}/tmp'){ |
|
|
|
fileset(dir:"${libDir}/tmp"){ |
|
|
|
include(name:'javax/mail/**') |
|
|
|
include(name:"javax/mail/**") |
|
|
|
include(name:'javax/servlet/**') |
|
|
|
include(name:"javax/servlet/**") |
|
|
|
include(name:'org/freehep/**') |
|
|
|
include(name:"org/freehep/**") |
|
|
|
include(name:'com/fr/third/JAI/**') |
|
|
|
include(name:"com/fr/third/JAI/**") |
|
|
|
include(name:'com/fr/third/antlr/**') |
|
|
|
include(name:"com/fr/third/antlr/**") |
|
|
|
include(name:'com/fr/third/javax/**') |
|
|
|
include(name:"com/fr/third/javax/**") |
|
|
|
include(name:'com/sun/xml/**') |
|
|
|
include(name:"com/sun/xml/**") |
|
|
|
include(name:'javax/xml/**') |
|
|
|
include(name:"javax/xml/**") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
fileset(dir:'build/classes'){ |
|
|
|
fileset(dir:"build/classes"){ |
|
|
|
include(name:'com/fr/web/*.class') |
|
|
|
include(name:"com/fr/web/*.class") |
|
|
|
include(name:'com/fr/web/attr/*.class') |
|
|
|
include(name:"com/fr/web/attr/*.class") |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
delete(dir:'${libDir}/tmp') |
|
|
|
delete(dir:"${libDir}/tmp") |
|
|
|
def jdk6home= 'D:/FineReport/develop/java/jdk1.6u35' |
|
|
|
def jdk6home= "D:/FineReport/develop/java/jdk1.6u35" |
|
|
|
def keystore='frapplet.store' |
|
|
|
def keystore="frapplet.store" |
|
|
|
def keycert='fr.cert' |
|
|
|
def keycert="fr.cert" |
|
|
|
def keypassword='123456' |
|
|
|
def keypassword="123456" |
|
|
|
def keyalias='fr' |
|
|
|
def keyalias="fr" |
|
|
|
|
|
|
|
|
|
|
|
exec(executable:"${jdk6home}/bin/keytool"){ |
|
|
|
exec(executable:"${jdk6home}/bin/keytool"){ |
|
|
|
arg(line:"-genkey -dname "CN=FineReport L=NanJing C=China" -keystore ${keystore} -alias ${keyalias} -validity 3650 -storepass ${keypassword}") |
|
|
|
arg(line:"-genkey -dname "CN=FineReport L=NanJing C=China" -keystore ${keystore} -alias ${keyalias} -validity 3650 -storepass ${keypassword}") |
|
|
@ -79,7 +79,7 @@ task appletJar<<{ |
|
|
|
} |
|
|
|
} |
|
|
|
delete(file:"${keystore}") |
|
|
|
delete(file:"${keystore}") |
|
|
|
delete(file:"${keycert}") |
|
|
|
delete(file:"${keycert}") |
|
|
|
delete(dir:'build/classes') |
|
|
|
delete(dir:"build/classes") |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|