Browse Source

打包测试(applet)--04

master
fangdong sun 9 years ago
parent
commit
1f04d50048
  1. 22
      build.gradle

22
build.gradle

@ -65,19 +65,25 @@ task appletJar{
} }
} }
delete(dir:'../finereport-lib-stable/tmp') delete(dir:'../finereport-lib-stable/tmp')
property(name:'jdk1.6.home',value:'D:/FineReport/develop/java/jdk1.6u35') def jdk6home= 'D:/FineReport/develop/java/jdk1.6u35'
property(name:'keystore',value:'frapplet.store') def keystore='frapplet.store'
property(name:'keycert',value:'fr.cert') def keycert='fr.cert'
property(name:'keypasssword',value:'123456') def keypassword='123456'
property(name:'keyalias',value:'fr') def keyalias='fr'
exec(executable:"${jdk1.6.home}/bin/keytool"){ //property(name:'jdk1.6.home',value:'D:/FineReport/develop/java/jdk1.6u35')
//property(name:'keystore',value:'frapplet.store')
//property(name:'keycert',value:'fr.cert')
//property(name:'keypasssword',value:'123456')
//property(name:'keyalias',value:'fr')
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}")
} }
exec(executable:"${jdk1.6.home}/bin/keytool"){ exec(executable:"${jdk6home}/bin/keytool"){
arg(line:"-export -keystore ${keystore} -alias ${keyalias} -file ${keycert} -storepass ${keypassword}") arg(line:"-export -keystore ${keystore} -alias ${keyalias} -file ${keycert} -storepass ${keypassword}")
} }
exec(executable:"${jdk1.6.home}/bin/jarsigner"){ exec(executable:"${jdk6home}/bin/jarsigner"){
arg(line:"-keystore ${keystore} -storepass ${keypassword} ${applet_jar} ${keyalias}") arg(line:"-keystore ${keystore} -storepass ${keypassword} ${applet_jar} ${keyalias}")
} }
delete(file:"${keystore}") delete(file:"${keystore}")

Loading…
Cancel
Save