bigbluebutton-Github/deskshare/applet/build.xml
Richard Alam 1821d99cf3 copying from dev branch to trunk
git-svn-id: http://svn.bigbluebutton.org/project-bbb/trunk@54 6ac8b576-4aa1-4e98-a958-8badfeb98c9d
2009-10-23 14:47:31 +00:00

74 lines
2.6 KiB
XML

<?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.62.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.62.jar"
alias="${keystore.alias}"
keystore="${keystore}"
storepass="${keystore.password}" />
</target>
</project>