File: build.xml

package info (click to toggle)
libbytelist-java 1.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 304 kB
  • ctags: 148
  • sloc: java: 1,014; xml: 149; makefile: 4
file content (59 lines) | stat: -rw-r--r-- 1,764 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
<?xml version="1.0" encoding="utf-8"?>

<project basedir="." default="jar" name="ByteList">

  <!-- Initializes the build -->
  <target name="init">
    <mkdir dir="build"/>
    <mkdir dir="build/classes"/>
    <mkdir dir="build/test-classes"/>
  </target>

  <target name="compile" depends="init">
    <javac destdir="build/classes" debug="true" source="1.5" target="1.5" deprecation="true" encoding="UTF-8">
       <src path="src"/>
    </javac>
  </target>

  <target name="compile-tests" depends="compile">
    <javac destdir="build/test-classes" debug="true" source="1.5" target="1.5" deprecation="true" encoding="UTF-8">
       <classpath>
         <pathelement location="build/classes"/>
       </classpath>

       <src path="test"/>
    </javac>
  </target>

  <target name="test" depends="compile-tests" description="Runs all tests">
    <junit haltonfailure="false">
      <classpath>
      	<pathelement location="build/classes"/>
      	<pathelement location="build/test-classes"/>
      </classpath>
      <formatter type="brief" usefile="false"/>
      <batchtest>
        <fileset dir="test">
          <include name="**/*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>

  <target name="jar" depends="test" description="Create the bytelist.jar file">
    <jar destfile="lib/bytelist-1.0.2.jar">
      <fileset dir="build/classes">
        <include name="**/*.class"/>
        <include name="**/*.properties"/>
      </fileset>
      <manifest>
        <attribute name="Built-By" value="${user.name}"/>
      </manifest>
    </jar>
  </target>

  <target name="clean" depends="init" description="clean everything">
    <delete dir="build"/>
    <delete file="lib/bytelist-1.0.2.jar" quiet="true"/>
  </target>
</project>