Skip to content

Instantly share code, notes, and snippets.

@stimms
Last active December 10, 2015 11:58
Show Gist options
  • Save stimms/4430857 to your computer and use it in GitHub Desktop.
Save stimms/4430857 to your computer and use it in GitHub Desktop.
<project default="dist">
<property name="airFile" value="WopsleNet.air"></property>
<property name="keyFile" value="wopsleCert.pfx"></property>
<target name="clean">
<delete file="${airFile}"></delete>
</target>
<target name="generateKey">
<exec executable="c:\WINDOWS\system32\cmd.exe">
<arg value="/C"></arg>
<arg value="c:\hudson\tools\AdobeAir\bin\adt.bat"></arg>
<arg value="-certificate"></arg>
<arg value="-cn"></arg>
<arg value=" Wopsle"></arg>
<arg value="1024-RSA"></arg>
<arg value="${keyFile}"></arg>
<arg value="helloWorld"></arg>
</exec>
<sleep seconds="2"></sleep>
</target>
<target depends="generateKey" name="dist">
<property environment="env"></property>
<replace file="application.xml" token="${buildNumber}" value="${env.SVN_REVISION}"></replace>
<exec executable="c:\hudson\tools\AdobeAir\bin\adt.bat">
<arg value="-package"></arg>
<arg value="-storetype"></arg>
<arg value="pkcs12"></arg>
<arg value="-storepass"></arg>
<arg value="helloWorld"></arg>
<arg value="-keystore"></arg>
<arg value="${keyFile}"></arg>
<arg value="${airFile}"></arg>
<arg value="application.xml"></arg>
<!--contents-->
<arg value="css"></arg>
<arg value="html"></arg>
<arg value="icons"></arg>
<arg value="img"></arg>
<arg value="js"></arg>
<arg value="lib"></arg>
<arg value="Client.html"></arg>
<arg value="config.js"></arg>
</exec>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment