File: build.xml

package info (click to toggle)
liblouisutdml 2.12.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,560 kB
  • sloc: ansic: 24,252; xml: 2,167; makefile: 1,354; java: 369; sh: 91
file content (57 lines) | stat: -rw-r--r-- 1,896 bytes parent folder | download | duplicates (7)
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
<project name="jliblouisutdml" default="dist"
    basedir=".">
  <property name="liblouis.dir" value="native"/>
  <condition property="liblouis.ext" value=".dll">
    <os family="windows"/>
  </condition>
  <condition property="liblouis.ext" value=".so">
    <os family="unix"/>
  </condition>
  <condition property="liblouis.ext" value=".dynlib">
    <os family="mac"/>
  </condition>
  <property name="liblouis.ext" value=".so"/>
  <propertyset id="test.props">
    <propertyref name="liblouis.dir"/>
    <propertyref name="liblouis.ext"/>
  </propertyset>
  <property name="src" location="src"/>
  <property name="build" location="classes"/>
  <property name="test.src" location="tests"/>
  <property name="test.build" location="testclasses"/>
  <path id="test_cp">
    <pathelement location="lib/testng-6.8.jar"/>
    <pathelement location="${build}"/>
    <pathelement location="${test.build}"/>
  </path>
  <taskdef name="testng" classpathref="test_cp"
      classname="org.testng.TestNGAntTask"/>
  <target name="init">
    <mkdir dir="${build}"/>
  </target>
  <target name="testInit">
    <mkdir dir="${test.build}"/>
  </target>
  <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${build}"
        includeantruntime="false" source="1.6" target="1.6">
    </javac>
  </target>
  <target name="dist" depends="compile">
    <jar jarfile="jliblouisutdml.jar" 
        basedir="${build}">
    </jar>
  </target>
  <target name="testCompile" depends="testInit, compile">
    <javac srcdir="${test.src}" destdir="${test.build}"
        includeantruntime="false" source="1.6" target="1.6" 
        classpathref="test_cp"/>
  </target>
  <target name="test" depends="testCompile">
    <testng classpathref="test_cp">
      <classfileset dir="${test.build}" includes="org/liblouis/*.class"/>
      <propertyset refid="test.props"/>
    </testng>
  </target>
</project>