File: build.xml

package info (click to toggle)
simple-xml 2.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,464 kB
  • sloc: java: 45,332; xml: 273; sh: 11; makefile: 5
file content (62 lines) | stat: -rw-r--r-- 2,102 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?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="lib.path" value="lib"/>
      <property name="version" value="2.7.1"/>
   </target>

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

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

   <target name="build" depends="prepare">
      <javac srcdir="${source.path}" destdir="${build.path}" debug="true" debuglevel="lines,vars,source" encoding="UTF-8">
         <classpath>
            <fileset dir="${lib.path}">
               <include name="**/*.jar"/>
            </fileset>
         </classpath>  
      </javac>
      <mkdir dir="${build.path}/META-INF"/>
      <copy todir="${build.path}/META-INF">
         <fileset file="LICENSE.txt"/>
      </copy>
      <jar jarfile="${jar.path}/simple-xml-${version}.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">
         <classpath>
            <fileset dir="${lib.path}">
               <include name="**/*.jar"/>
            </fileset>
         </classpath>  
      </javadoc>
      <delete dir="${build.path}"/>
   </target>

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