Created
May 30, 2011 21:49
-
-
Save seadowg/999527 to your computer and use it in GitHub Desktop.
Scala ant build script (OS X with brew install of scala)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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