summaryrefslogtreecommitdiff
blob: 8500031afabb4625ab4dc9a75ac2e93dfa2c741a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<project name="forehead" default="jar" basedir=".">
   <property name="src" value="src"/>
   <property name="build" value="build"/>
   <property name="dest" value="dest"/>
   <property name="docs" value="docs"/>
   <property name="packages" value="com.werken.forehead.*"/>
   
   <target name="init">
      <tstamp/>
      <mkdir dir="${build}"/>
      <mkdir dir="${dest}"/>
      <mkdir dir="${docs}"/>
   </target>

   <target name="compile" depends="init">
      <javac srcdir="${src}" destdir="${build}"/>
   </target>

   <target name="jar" depends="compile">
      <jar destfile="${dest}/forehead-${version}.jar" basedir="${build}"/>
   </target>

   <target name="javadoc" depends="compile,jar">
      <javadoc packagenames="${packages}" sourcepath="${src}/java" destdir="${docs}"/>
   </target>
</project>