Skip to content

Instantly share code, notes, and snippets.

@seadowg
Created May 30, 2011 21:49
Show Gist options
  • Save seadowg/999527 to your computer and use it in GitHub Desktop.
Save seadowg/999527 to your computer and use it in GitHub Desktop.
Scala ant build script (OS X with brew install of scala)
<project name="scalaIsAwesome" basedir="." default="build">
<property name="scala-compiler.jar"
value="/usr/local/Cellar/scala/2.8.1/libexec/lib/scala-compiler.jar"/>
<property name="scala-library.jar"
value="/usr/local/Cellar/scala/2.8.1/libexec/lib/scala-library.jar"/>
<path id="scala.classpath">
<pathelement location="${scala-compiler.jar}"/>
<pathelement location="${scala-library.jar}"/>
</path>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath refid="scala.classpath"/>
</taskdef>
<target name="build">
<mkdir dir="build" />
<scalac srcdir="src"
destdir="build"
classpathref="scala.classpath">
</scalac>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment