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 (67 lines) | stat: -rw-r--r-- 2,513 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<project default="test" basedir=".">

   <target name="layout">
      <property name="parent.path" value=".."/>
      <property name="source.path" value="src"/>
      <property name="lib.path" value="lib"/>
      <property name="report.path" value="report"/>
      <property name="build.path" value="build"/>
   </target>

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

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

   <target name="test" depends="prepare">
      <javac srcdir="${parent.path}/${source.path}" destdir="${build.path}/core" debug="true" debuglevel="lines,vars,source" encoding="UTF-8">
         <classpath>
            <fileset dir="${lib.path}">
               <include name="**/*.jar"/>
            </fileset>
         </classpath>
      </javac>
      <copy todir="${build.path}/core">
         <fileset dir="${parent.path}/${source.path}">
            <exclude name="**/*.java"/>
         </fileset>
      </copy>
      <javac srcdir="${source.path}" destdir="${build.path}/test" debug="true" debuglevel="lines,vars,source" encoding="UTF-8">
         <classpath>
            <fileset dir="${lib.path}">
               <include name="**/*.jar"/>
            </fileset>
            <pathelement path="${build.path}/core"/>
         </classpath>
      </javac>
      <junit showoutput="true" printsummary="yes" haltonfailure="yes" fork="yes">
         <classpath location="${build.path}/core"/>
         <classpath location="${build.path}/test"/>
         <classpath>
            <fileset dir="${lib.path}">
               <include name="**/*.jar"/>
            </fileset>
         </classpath>
         <formatter type="plain"/>
         <batchtest fork="yes" todir="${report.path}">
            <fileset dir="${build.path}/test">
               <include name="**/*Test.class"/>
               <exclude name="**/*TestSuite.class"/>
               <exclude name="**/RequestTest.class"/>
               <exclude name="**/PartListConsumerTest.class"/>
               <exclude name="**/ContentConsumerTest.class"/>
               <exclude name="**/DistributorTest.class"/>   
            </fileset>
         </batchtest>
      </junit>
      <delete dir="${build.path}"/>
   </target>

</project>