rosado / cloak
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
c1fb64d
cloak / build.xml
| 60e02c80 » | rosado | 2009-04-18 | 1 | <project name="cloak" default="props" basedir="."> | |
| 2 | |||||
| 3 | <description> | ||||
| 4 | A simple build system for Clojure. | ||||
| 5 | </description> | ||||
| 6 | |||||
| 7 | <!-- PROPERTIES --> | ||||
| 8 | <property name="lib.dir" location="${basedir}/lib" /> | ||||
| 9 | <property name="dist.dir" location="${basedir}/bin" /> | ||||
| 10 | <property name="build.classes.dir" location="${basedir}/classes" /> | ||||
| 11 | |||||
| 12 | <path id="compile.classpath"> | ||||
| 13 | <pathelement path="${clj.dir}/clojure.jar" /> | ||||
| 14 | <fileset dir="${lib.dir}"> | ||||
| 15 | <include name="*.jar"/> | ||||
| 16 | </fileset> | ||||
| 17 | </path> | ||||
| 18 | |||||
| 19 | <path id="clj.compile.classpath"> | ||||
| 20 | <pathelement path="${clj.dir}/clojure.jar" /> | ||||
| 21 | <path refid="compile.classpath" /> | ||||
| 22 | <path location="${basedir}" /> | ||||
| 23 | <path location="${build.classes.dir}" /> | ||||
| 24 | </path> | ||||
| 25 | |||||
| 26 | <path id="run.classpath"> | ||||
| 27 | <path refid="compile.classpath" /> | ||||
| 28 | <path location="${build.classes.dir}" /> | ||||
| 29 | </path> | ||||
| 30 | |||||
| 31 | <target name="init"> | ||||
| 32 | <mkdir dir="classes" /> | ||||
| 33 | </target> | ||||
| 34 | |||||
| 35 | <!-- TARGETS --> | ||||
| 36 | |||||
| 37 | <target name="clean"> | ||||
| 38 | <delete dir="classes" /> | ||||
| 39 | </target> | ||||
| 40 | |||||
| 41 | <target name="compile-clojure-src" | ||||
| 42 | description="Compile Clojure sources" | ||||
| 43 | depends="init"> | ||||
| 44 | <java classname="clojure.lang.Compile" | ||||
| 45 | classpath="${build}:${cljsrc}"> | ||||
| 46 | <sysproperty key="clojure.compile.path" value="${build.classes.dir}" /> | ||||
| 47 | <classpath refid="clj.compile.classpath" /> | ||||
| 48 | <arg value="rosado.cloak"/> | ||||
| 49 | <arg value="rosado.cloak.actions"/> | ||||
| 50 | <arg value="rosado.cloak.main" /> | ||||
| 51 | </java> | ||||
| 52 | </target> | ||||
| 53 | |||||
| 54 | <target name="compile" depends="compile-clojure-src" | ||||
| 55 | description="Compile Cloak."> | ||||
| 56 | </target> | ||||
| 57 | |||||
| 58 | <target name="run" | ||||
| 59 | depends=""> | ||||
| 60 | <java classname="rosado.cloak" | ||||
| 61 | classpathref="run.classpath" | ||||
| 62 | fork="true" | ||||
| 63 | spawn="false"> | ||||
| 64 | <sysproperty key="java.library.path" path="${native.lib.dir}" /> | ||||
| 65 | </java> | ||||
| 66 | </target> | ||||
| 67 | |||||
| 68 | <target name="jar" depends="compile" | ||||
| 69 | description="Package compiled *.class files into a jar."> | ||||
| 9c23f555 » | rosado | 2009-05-17 | 70 | <jar destfile="${dist.dir}/rosado.cloak.jar"> | |
| 71 | <fileset dir="${build.classes.dir}" includes="rosado/**/*.class"/> | ||||
| 72 | </jar> | ||||
| 60e02c80 » | rosado | 2009-04-18 | 73 | </target> | |
| 74 | |||||
| 75 | <!-- UTIL TARGETS --> | ||||
| 76 | |||||
| 77 | <target name="props"> | ||||
| 78 | <echoproperties /> | ||||
| 79 | </target> | ||||
| 80 | |||||
| 81 | </project> | ||||
