Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 78 lines (68 sloc) 2.026 kb
a386e94 @gangeli initial commit
authored
1 <project name="time" default="dist" basedir=".">
2 <!-- PROPERTIES -->
3 <description>
4 Build file for ${ant.project.name}
5 </description>
6
7 <property name="src" location="src"/>
8 <property name="lib" location="etc"/>
9 <property name="build" location="bin"/>
10 <property name="dist" location="dist"/>
11
12 <path id="classpath.build">
13 <pathelement location="${lib}/postgresql.jar"/>
14 <pathelement location="${lib}/scala-compiler.jar"/>
15 <pathelement location="${lib}/scala-library.jar"/>
16 <pathelement location="${lib}/lib.jar"/>
17 </path>
18
19 <taskdef resource="scala/tools/ant/antlib.xml">
20 <classpath>
21 <pathelement location="${lib}/scala-compiler.jar"/>
22 <pathelement location="${scala-library.jar}"/>
23 </classpath>
24 </taskdef>
25
26 <!-- INIT -->
27 <target name="init">
28 <tstamp/>
29 <mkdir dir="${build}"/>
30 </target>
31
32 <target name="init-scala">
33 <property name="scala-library.jar"
34 value="${lib}/scala-library.jar"/>
35 <path id="scala.classpath">
36 <pathelement location="${scala-library.jar}"/>
37 <pathelement location="${build}"/>
38 </path>
39 </target>
40
41 <!-- BUILD -->
42 <target name="build" depends="init,init-scala"
43 description="Compile all files">
44 <javac srcdir="${src}" destdir="${build}"
45 debug="true" debuglevel="lines, vars, and source"
46 includeantruntime="false">
47 <classpath refid="classpath.build"/>
48 </javac>
49 <scalac srcdir="${src}" destdir="${build}"
50 classpathref="classpath.build">
51 <include name="**/*.scala"/>
52 </scalac>
53 </target>
54
55 <target name="dist" depends="build"
56 description="Package all files">
57 <mkdir dir="${dist}"/>
58 <!--Package Everything-->
59 <jar jarfile="${dist}/${ant.project.name}.jar">
60 <fileset dir="${build}"/>
61 <fileset dir="${src}"/>
62 <!--
63 <zipfileset src="${lib}/postgresql.jar"/>
64 <zipfileset src="${lib}/scala-library.jar"/>
65 <zipfileset src="${lib}/lib.jar"/>
66 -->
67 </jar>
68 </target>
69
70 <!-- CLEAN -->
71 <target name="clean"
72 description="clean up">
73 <delete dir="${build}"/>
74 <delete dir="${dist}"/>
75 </target>
76
77 </project>
Something went wrong with that request. Please try again.