File: build.xml

package info (click to toggle)
simple-http 4.1.21-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,332 kB
  • sloc: java: 16,228; xml: 176; sh: 9; makefile: 5
file content (46 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<project name="Simple" default="build" basedir=".">

   <target name="layout">
      <property name="source.path" value="src"/>
      <property name="javadoc.path" value="javadoc"/>
      <property name="build.path" value="build"/>
      <property name="jar.path" value="jar"/>
      <property name="test.path" value="test"/>
      <property name="version" value="4.1.21"/>
   </target>

   <target name="clean" depends="layout">
      <delete dir="${build.path}"/>
      <delete dir="${jar.path}"/>
      <delete dir="${javadoc.path}"/>
   </target>

   <target name="prepare" depends="clean">
      <mkdir dir="${build.path}"/>
      <mkdir dir="${jar.path}"/>
   </target>

   <target name="build" depends="prepare">
       <javac target="1.5" srcdir="${source.path}" destdir="${build.path}" debug="true" debuglevel="lines,vars,source" encoding="UTF-8"/>
      <jar jarfile="${jar.path}/simple-http.jar" basedir="${build.path}"/>
      <delete dir="${build.path}"/>
   </target>

   <target name="test" depends="layout">
      <ant antfile="build.xml" dir="${test.path}" inheritall="false"/>
      <delete dir="${build.path}"/>
   </target>

   <target name="javadoc" depends="layout">
      <mkdir dir="${javadoc.path}"/>
      <javadoc sourcepath="${source.path}" packagenames="org.simpleframework.*" destdir="${javadoc.path}" private="false"/>
      <delete dir="${build.path}"/>
   </target>

   <target name="all">
      <antcall target="build"/>
      <antcall target="javadoc"/>
      <antcall target="test"/>
   </target>
</project>