Skip to content

Instantly share code, notes, and snippets.

@Vj3k0
Created December 11, 2012 06:29
Show Gist options
  • Save Vj3k0/4256333 to your computer and use it in GitHub Desktop.
Save Vj3k0/4256333 to your computer and use it in GitHub Desktop.
Adding telemetry to SWF with Ant
#Properties for ant-telemetry.xml
project.name=SomeProjectName
swf.name=${project.name}.swf
#Path to your SWF
swf.loc=${basedir}/../out/production/${project.name}/${swf.name}
<?xml version="1.0" encoding="UTF-8"?><!--ant-->
<project name="AddTelemetry" basedir="." default="addTelemetry">
<!-- identify properties file -->
<property file="ant-telemetry.properties"/>
<target name="addTelemetry">
<echo message="Adding telemetry to: ${swf.loc}" />
<exec executable="./add-opt-in.py">
<arg value="${swf.loc}" />
</exec>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment