Skip to content

Instantly share code, notes, and snippets.

View dwdyer's full-sized avatar

Dan Dyer dwdyer

View GitHub Profile
@dwdyer
dwdyer / gist:6324586
Last active December 21, 2015 15:09
Real-world build file that uses the Rectangular Antlib to build two different versions of the same app. This is the actual build.xml used to build StackAnywhere (http://rectangularsoftware.com/stackanywhere), which has a free, ad-supported version and an ad-free paid-for version.
<?xml version="1.0" encoding="UTF-8"?>
<project name="stackanywhere" xmlns:android="antlib:com.rectangularsoftware.antlib" default="debug-package">
<taskdef uri="antlib:com.rectangularsoftware.antlib"
classpath="${lib.compiletime}/rectangular-antlib-1.0.jar"/>
<property name="target" value="android-17" />
<!-- This property MUST be set for multi-version projects. -->
<property name="app.root" value="./build"/>
<target name="clean">
@dwdyer
dwdyer / terracotta-config.xml
Created October 26, 2012 21:25
Terracotta configuration file for the Watchmaker Framework (Sudoku example)
<?xml version="1.0" encoding="UTF-8"?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">
<application>
<dso>
<roots>
<root>
<field-name>org.uncommons.watchmaker.framework.FitnessEvaluationWorker.workQueue</field-name>
@dwdyer
dwdyer / build.xml
Last active September 28, 2015 00:18
Ant build file for Rectangular Video Poker using Uncommons Antlib
<?xml version="1.0" encoding="UTF-8"?>
<project name="videopoker" xmlns:android="antlib:com.rectangularsoftware.antlib" default="debug-package">
<!-- Load the Antlib and set the target Android platform version. -->
<taskdef uri="antlib:com.rectangularsoftware.antlib"
classpath="lib/compiletime/rectangular-antlib-1.0.jar" />
<property name="target" value="android-11" />
<target name="clean" description="Clean working directory.">
<android:clean />
@dwdyer
dwdyer / sample-config.xml
Created June 21, 2010 18:45
Sample configuration file for Anorak.
<config output="outputDir" templates="templateDir">
<league name="England">
<division name="Premier League">
<season name="2009/10" input="premier09-10.rlt" output="premier/2009-2010" scorers="true"/>
<season name="2008/09" input="premier08-09.rlt" output="premier/2008-2009" archive="true"/>
<season name="All Time" input="premier-alltime.rlt" output="premier/alltime" aggregated="true"/>
</division>
<division name="Championship">
<season name="2009/10" input="championship09-10.rlt" output="championship/2009-2010"/>
</division>