File: build.xml

package info (click to toggle)
c3p0 0.9.1.2-9+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,152 kB
  • sloc: java: 29,115; xml: 791; makefile: 14; sh: 11
file content (71 lines) | stat: -rw-r--r-- 2,562 bytes parent folder | download | duplicates (4)
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
<project name="debuggen" default="dist">

   <!-- ignore the CLASSPATH environment variable. force builds to specify classpaths -->
   <property name="build.sysclasspath" value="ignore" />

   <property file="build.properties" />
   <property file="version.properties" />

   <property name="debuggen.name" value="debuggen-${debuggen.version}" />
   <property name="src.dir" value="src" />
   <property name="java.src.dir" value="${src.dir}/classes" />
   <property name="app-rsrc.src.dir" value="${src.dir}/app-rsrc" />
   <property name="build.dir" value="build" />
   <property name="build.classes.dir" value="${build.dir}/classes" />
   <property name="build.apidocs.dir" value="${build.dir}/apidocs" />
   <property name="dist.dir" value="dist" />
   <property name="app.jar.manifest" value="${app-rsrc.src.dir}/META-INF/manifest.src" />
   <property name="jar.file" value="${dist.dir}/${debuggen.name}.jar" />
   <property name="srcdist.name" value="${debuggen.name}-src" />

   <target name="init">
      <mkdir dir="${build.dir}" />
      <mkdir dir="${dist.dir}" />
   </target>

   <target name="clean">
      <delete dir="${build.dir}" />
      <delete dir="${dist.dir}" />
   </target>

   <target name="compile" depends="init">
      <mkdir dir="${build.classes.dir}" />
      <javac srcdir="${java.src.dir}" 
             destdir="${build.classes.dir}" 
             debug="on"  nowarn="on" deprecation="off"/>
   </target>

   <target name="jar" depends="compile">
      <jar destfile="${jar.file}" manifest="${app.jar.manifest}">
          <fileset dir="${build.classes.dir}" />
      </jar>
   </target>

   <target name="dist" depends="jar" />

   <target name="srcdist">
      <zip destfile="${dist.dir}/${srcdist.name}.zip">
        <zipfileset dir="." prefix="${srcdist.name}">
           <exclude name="${build.dir}/**"/>
           <exclude name="${dist.dir}/**"/>
           <exclude name="**/*.class"/>
           <exclude name="**/old/**"/>
           <exclude name="**/bad/**"/>
        </zipfileset>
      </zip>
      <tar destfile="${dist.dir}/${srcdist.name}.tar">
        <tarfileset dir="." prefix="${srcdist.name}">
           <exclude name="${build.dir}/**"/>
           <exclude name="${dist.dir}/**"/>
           <exclude name="**/*.class"/>
           <exclude name="**/old/**"/>
           <exclude name="**/bad/**"/>
        </tarfileset>
      </tar>
      <gzip zipfile="${dist.dir}/${srcdist.name}.tgz" src="${dist.dir}/${srcdist.name}.tar" />
   </target>

   <target name="all" depends="dist,srcdist" />

</project>