bigbluebutton-Github/deskshare/applet/build.xml

74 lines
2.6 KiB
XML
Raw Normal View History

<?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">
<signjar jar="build/libs/bbb-deskshare-applet-0.64.jar"
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">
<signjar jar="build/libs/bbb-deskshare-applet-0.64.jar"
alias="${keystore.alias}"
keystore="${keystore}"
storepass="${keystore.password}" />
</target>
</project>