2009-10-23 22:47:31 +08:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<project name="bbb-deskshare-applet" basedir=".">
|
|
|
|
|
|
|
|
<!-- How to sign the applet. From Ant in Action book -->
|
|
|
|
<!--
|
|
|
|
<target name="getPassword" depends="initSecurity" description="Prompts for password for keystore">
|
|
|
|
<input addproperty="keystore.password" >password for keystore:</input>
|
|
|
|
<echo level="verbose">password = ${keystore.password}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="initSecurity">
|
|
|
|
<property name="keystore.dir" location="${user.home}/.secret" />
|
|
|
|
<mkdir dir="${keystore.dir}" />
|
|
|
|
<chmod file="${keystore.dir}" perm="700"/>
|
|
|
|
<property name="keystore" location="${keystore.dir}/local.keystore" />
|
|
|
|
<property name="keystore.properties" location="${keystore.dir}/keystore.properties" />
|
|
|
|
<property name="keystore.alias" value="code.signer"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="createSigningKey" depends="getPassword">
|
|
|
|
<genkey alias="${keystore.alias}" keystore="${keystore}" storepass="${keystore.password}" validity="366" >
|
|
|
|
<dname>
|
|
|
|
<param name="CN" value="BigBlueButton"/>
|
|
|
|
<param name="OU" value="BigBlueButton Project"/>
|
|
|
|
<param name="O" value="BigBlueButton"/>
|
|
|
|
<param name="C" value="CA"/>
|
|
|
|
</dname>
|
|
|
|
</genkey>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="signJar" depends="getPassword">
|
2010-03-05 23:12:30 +08:00
|
|
|
<signjar jar="build/libs/bbb-deskshare-applet-0.64.jar"
|
2009-10-23 22:47:31 +08:00
|
|
|
alias="${keystore.alias}"
|
|
|
|
keystore="${keystore}"
|
|
|
|
storepass="${keystore.password}" />
|
|
|
|
</target>
|
|
|
|
-->
|
|
|
|
<!-- How to sign the applet. From Ant in Action book -->
|
|
|
|
|
|
|
|
<target name="get-password" depends="init-security" description="Prompts for password for keystore">
|
|
|
|
<input addproperty="keystore.password" >password for keystore:</input>
|
|
|
|
<echo level="verbose">password = ${keystore.password}</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init-security">
|
|
|
|
<property name="keystore.dir" location="${user.home}/.secret" />
|
|
|
|
<mkdir dir="${keystore.dir}" />
|
|
|
|
<chmod file="${keystore.dir}" perm="700"/>
|
|
|
|
<property name="keystore"
|
|
|
|
location="${keystore.dir}/local.keystore" />
|
|
|
|
<property file="${keystore.dir}/keystore.properties" />
|
|
|
|
<property name="keystore.alias" value="code.signer"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="create-signing-key" depends="get-password">
|
|
|
|
<genkey alias="${keystore.alias}" keystore="${keystore}" storepass="${keystore.password}" validity="366" >
|
|
|
|
<dname>
|
|
|
|
<param name="CN" value="BigBlueButton"/>
|
|
|
|
<param name="OU" value="BigBlueButton Project"/>
|
|
|
|
<param name="O" value="BigBlueButton"/>
|
|
|
|
<param name="C" value="CA"/>
|
|
|
|
</dname>
|
|
|
|
</genkey>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="sign-jar" depends="get-password">
|
2010-03-05 23:12:30 +08:00
|
|
|
<signjar jar="build/libs/bbb-deskshare-applet-0.64.jar"
|
2009-10-23 22:47:31 +08:00
|
|
|
alias="${keystore.alias}"
|
|
|
|
keystore="${keystore}"
|
|
|
|
storepass="${keystore.password}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|