Browse files

No more build.xml

  • Loading branch information...
1 parent 8da070d commit 4a8ea05ae4a72d84a0204920125b4c78fa014658 Matt Revelle committed Jul 29, 2010
Showing with 0 additions and 66 deletions.
  1. +0 −66 build.xml
View
66 build.xml
@@ -1,66 +0,0 @@
-<project name="clojure-twitter" default="deploy">
-
- <!-- Override these with -Dclojure.jar=... in your Ant invocation. -->
- <property name="clojure.jar" location="/opt/clojure/clojure.jar"/>
- <property name="clojure.contrib.jar" location="/opt/clojure-contrib/clojure-contrib.jar"/>
-
- <available property="hasclojure" file="${clojure.jar}"/>
-
- <!-- Library. -->
- <property name="src" location="src"/>
- <property name="lib" location="lib"/>
- <property name="build" location="classes"/>
- <property name="jarfile" location="${ant.project.name}.jar"/>
- <property name="deploy" location="deploy"/>
-
- <target name="init">
- <tstamp/>
- <mkdir dir="${build}"/>
- <mkdir dir="${deploy}"/>
- </target>
-
- <target name="clean" description="Remove generated files and directories.">
- <delete dir="${deploy}"/>
- <delete dir="${build}"/>
- <delete file="${jarfile}"/>
- </target>
-
- <target name="compile_clojure" depends="init"
- description="Compile Clojure sources."
- if="hasclojure">
- <java classname="clojure.lang.Compile">
- <classpath>
- <path location="${src}"/>
- <path location="${build}"/>
-
- <fileset dir="${lib}">
- <include name="*.jar"/>
- </fileset>
-
- <path location="${clojure.jar}"/>
- <path location="${clojure.contrib.jar}"/>
- </classpath>
-
- <sysproperty key="clojure.compile.path" value="${build}"/>
- <arg value="twitter"/>
- </java>
- </target>
-
- <target name="jar" description="Create jar file." depends="compile_clojure">
- <jar jarfile="${jarfile}">
- <!-- <fileset dir="${src}" includes="**/*.clj"/> -->
- <fileset dir="${build}" includes="**/*.class"/>
- <manifest>
- <attribute name="Class-Path" value="."/>
- </manifest>
- </jar>
- </target>
-
- <target name="deploy" description="Copy appropriate jar files to one place."
- depends="clean,jar">
- <copy todir="${deploy}" verbose="true" file="${jarfile}"/>
- <copy todir="${deploy}" verbose="true">
- <fileset dir="${lib}" includes="*.jar"/>
- </copy>
- </target>
-</project>

0 comments on commit 4a8ea05

Please sign in to comment.