File: build.xml

package info (click to toggle)
relaxngcc 1.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,316 kB
  • sloc: java: 15,514; xml: 59; makefile: 46
file content (73 lines) | stat: -rw-r--r-- 2,393 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
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0"?>

<project name="relaxngcc" default="jar">

  <!-- Clean up: -->
  <target name="clean">
    <delete dir="bin"/>
    <delete dir="javadoc"/>
    <delete dir="lib"/>
    <delete dir="src/relaxngcc/parser/automata"/>
    <delete file="relaxngcc.jar"/>
    <delete>
       <fileset dir="src/relaxngcc/javabody/" includes="*.java"/>
    </delete>
  </target>

  <!-- Compile Java source files: -->
  <target name="compile">
    <mkdir dir="bin"/>
    <javacc target="src/relaxngcc/javabody/JavaBodyParser.jj" outputdirectory="src/relaxngcc/javabody" javacchome="/usr/share/java" static="false"/>
    <javac srcdir="src" destdir="bin" debug="on" optimize="off" classpath="/usr/share/java">
      <classpath>
        <fileset dir="/usr/share/java" includes="**/*.jar"/>
      </classpath>
    </javac>
  </target>

  <!-- Generate javadoc documentation: -->
  <target name="javadoc" depends="compile">
    <mkdir dir="javadoc"/>
    <javadoc locale="en_US" sourcepath="src" destdir="javadoc" windowtitle="RelaxNGCC" public="yes">
      <package name="relaxngcc.*"/>
      <classpath>
        <fileset dir="/usr/share/java" includes="*.jar"/>
      </classpath>
    </javadoc>
  </target>

  <!-- Create the jar file: -->
  <target name="jar" depends="compile">
    <tstamp/>
    <jar jarfile="relaxngcc.jar">
      <manifest>
        <attribute name="Version" value="${DSTAMP}"/>
        <attribute name="Main-Class" value="relaxngcc.RelaxNGCC"/>
       </manifest>
      <fileset dir="src" includes="**/*.properties"/>
      <fileset dir="src" includes="**/*.xsl"/>
      <fileset dir="src" includes="**/*.jelly"/>
      <fileset dir="src" includes="relaxngcc/runtime/*.java"/>
      <fileset dir="bin" includes="**/*.class"/>
      <fileset dir="." includes="project.xml"/>
    </jar>
  </target>

  <!-- use the built RelaxNGCC to compile the parser -->
  <target name="ngcc">
    <taskdef name="relaxngcc" classname="relaxngcc.ant.RelaxNGCCTask">
      <classpath path="relaxngcc.jar"/>
    </taskdef>
        <mkdir dir="src/relaxngcc/parser/automata"/>

    <relaxngcc source="src/relaxngcc/parser/relaxng.rng"
      targetdir="src/relaxngcc/parser/state"
      automata="src/relaxngcc/parser/automata">
    </relaxngcc>

    <relaxngcc source="src/relaxngcc/datatype/datatype.rng"
      targetdir="src/relaxngcc/datatype/parser">
    </relaxngcc>
  </target>

</project>