Browse Source

测试打包代码(applet)--03

master
fangdong sun 9 years ago
parent
commit
8623d88647
  1. 8
      build.gradle

8
build.gradle

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

Loading…
Cancel
Save