File: build.xml

package info (click to toggle)
libdtdparser-java 1.21a-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 400 kB
  • ctags: 393
  • sloc: java: 3,143; xml: 66; makefile: 15
file content (97 lines) | stat: -rw-r--r-- 3,180 bytes parent folder | download
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" ?>
<project name="masterbuild" default="build" basedir=".">

  <!--
    ============================================================
    properties
    ============================================================
   -->
  <property name="dist" value="dist"/>
  <property name="ext" value="ext"/>
  <property name="lib" value="classes"/>
  <property name="src" value="source"/>
  <property file="product.properties"/>
  <property name="prod.distbase" value="${prod.name}-${prod.version.major}.${prod.version.minor}"/>
  <property name="prod.jar" value="${prod.distbase}/${prod.name}-${prod.version.major}.${prod.version.minor}.jar"/>
  <property name="doc" value="${prod.distbase}/doc"/>

  <!--
    ============================================================
    declarations
    ============================================================
   -->
  <path id="default.classpath">
  </path>


  <!--
    ============================================================
    top-level build targets
    ============================================================
   -->
  <target name="prepare">
    <mkdir dir="${doc}"/>
    <mkdir dir="${lib}"/>
  </target>

  <target name="build" depends="prepare">
    <antcall target="compile"/>
    <antcall target="makejar"/>
  </target>

  <target name="compile">
    <javac srcdir="${src}" destdir="${lib}"
           deprecation="on">
      <classpath refid="default.classpath"/>
    </javac>
  </target>

  <target name="makejar">
    <jar jarfile="${prod.jar}" whenempty="skip" manifest="${src}/mainclass">
      <fileset dir="${lib}" includes="com/"/>
    </jar>
    <copy file="${prod.jar}" todir="${dist}"/>
  </target>

  <target name="createdoc">
    <javadoc packagenames="com.wutka.*"
             sourcepath="${src}"
             classpathref="default.classpath"
             destdir="${doc}"
             author="true"
             version="true"
             use="true"
             windowtitle="DTDParser API"
             doctitle="DTDParser API"
             bottom="Copyright (c) 2001 Mark Wutka.">
      <link href="http://java.sun.com/j2se/1.3/docs/api/"/>
    </javadoc>
  </target>

  <target name="dist" depends="build,createdoc">
    <exec executable="cvs" dir="${dist}">
      <arg line="-q export -D now -d ${prod.distbase} ${prod.name}"/>
    </exec>
    <copy file="${dist}/${prod.name}-${prod.version.major}${prod.version.minor}.jar" todir="${basedir}/${dist}/${prod.distbase}"/>
    <tar tarfile="${dist}/${prod.distbase}.tar"
         basedir="${dist}" includes="${prod.distbase}/**/*"/>
    <gzip zipfile="${dist}/${prod.distbase}.tgz"
          src="${dist}/${prod.distbase}.tar"/>
    <zip zipfile="${dist}/${prod.distbase}.zip"
         basedir="${dist}" includes="${prod.distbase}/**/*"/>
    <delete file="${dist}/${prod.distbase}.tar"/>
    <delete dir="${dist}/${prod.distbase}"/>
  </target>

  <!--
    ============================================================
    cleanup
    ============================================================
   -->
  <target name="clean">
    <delete dir="${dist}"/>
    <delete dir="${doc}"/>
    <delete dir="${lib}/com"/>
  </target>

</project>