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