Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
956 | dev | 1 | <project name="backpath" default="lib" basedir="."> |
2 | |||
3 | <property name="build.compiler" value="jikes" /> |
||
4 | |||
5 | <property name="src" location="src" /> |
||
6 | <property name="classes" location="classes" /> |
||
7 | <property name="lib" location="lib" /> |
||
8 | <property name="output" location="output" /> |
||
9 | <property name="classpath" value="" /> |
||
10 | |||
11 | <path id="classpath.general"> |
||
12 | <pathelement path="${classpath}" /> |
||
13 | </path> |
||
14 | |||
15 | <path id="classpath.compile"> |
||
16 | <path refid="classpath.general" /> |
||
17 | <pathelement location="${classes}" /> |
||
18 | <fileset dir="${lib}"> |
||
19 | <include name="**/*.jar" /> |
||
20 | </fileset> |
||
21 | </path> |
||
22 | |||
23 | <target name="compile"> |
||
24 | <mkdir dir="${classes}" /> |
||
25 | |||
26 | <javac |
||
27 | srcdir="${src}" |
||
28 | destdir="${classes}" |
||
29 | classpathref="classpath.compile" |
||
30 | debug="on" |
||
31 | nowarn="on" |
||
32 | /> |
||
33 | </target> |
||
34 | |||
35 | <target name="lib" depends="compile"> |
||
36 | <mkdir dir="${output}" /> |
||
37 | <jar |
||
38 | destfile="${output}/backpath.jar" |
||
39 | basedir="${classes}" |
||
40 | /> |
||
41 | </target> |
||
42 | |||
43 | <target name="clean"> |
||
44 | <delete dir="${classes}"/> |
||
45 | </target> |
||
46 | |||
47 | <target name="all" depends="clean,lib" /> |
||
48 | |||
49 | </project> |