Make jar signing optional

This commit is contained in:
2008-06-07 12:51:19 +00:00
parent 7605775c52
commit 0c69ea314f
2 changed files with 10 additions and 2 deletions

View File

@ -9,4 +9,5 @@ swtJarPathWin=C:/Program Files/Eclipse 2.1.x/plugins/org.eclipse.swt.win32_2.1.3
swtJarPathMac=/Users/Shared/eclipse/plugins/org.eclipse.swt.carbon.macosx_3.2.2.v3236.jar
junitPathWin=C:/Java/lib/junit3.8.1/junit.jar
junitPathMac=/Users/Shared/junit/junit.jar
keyconf=${user.home}/.secret
keyconf=${user.home}/.secret
alias=name

View File

@ -25,6 +25,9 @@
else="${junitPathMac}">
<os family="windows"/>
</condition>
<condition property="signing-needed">
<available file="${keyconf}" property="keyconf-exists" />
</condition>
<target name="version" description="Get version from source.">
<property name="main.path" value="src/com/webcodepro/applecommander/ui"/>
@ -60,11 +63,15 @@
<delete dir="${javadoc}"/>
</target>
<target name="all" depends="init,jars,macBundle,sourceZip,javadoc,websiteZip" description="Everything">
<target name="all" depends="init,jars,signJars,macBundle,sourceZip,javadoc,websiteZip" description="Everything">
<!-- Nothing else to do - depends handles it all. -->
</target>
<target name="jars" depends="init,executableGuiJar,executableCmdJar" description="Build executable jars">
<!-- Nothing else to do - depends handles it all. -->
</target>
<target name="signJars" depends="init" if="signing-needed" description="Signs the jars">
<!-- In ACBuild.properties => keyconf=${user.home}/.secret alias=name -->
<!-- See man keytool, http://java.sun.com/j2se/1.5.0/docs/tooldocs/ -->
<loadfile srcfile="${keyconf}" property="password"/>