File: build.xml

package info (click to toggle)
libjamon-java 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 760 kB
  • ctags: 1,595
  • sloc: java: 6,469; xml: 27; sh: 10; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 1,081 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
<?xml version="1.0" encoding="UTF-8"?>

<project default="jar" name="jamon" basedir=".">
  <property file="build.properties"/>

  <target name="clean" description="Clean up">
    <delete dir="${class.dir}"/>
    <delete file="${jar.name}"/>
  </target>

  <target name="compile" description="Compile the sources">
    <mkdir dir="${class.dir}"/>
    <javac srcdir="${source.dir}" destdir="${class.dir}"
      deprecation="true" debug="true" optimize="false" nowarn="true"/>
  </target>

  <target name="javadoc" description="Creates Javadoc documentation"
    depends="jar">
    <mkdir dir="${doc.dir}"/>
    <javadoc packagenames="${doc.packagenames}"
      classpath="${class.dir}/${jar.name}"
      sourcepath="${source.dir}" destdir="${doc.dir}"/>
  </target>

  <target name="jar" description="Create the jar" depends="compile">
    <jar jarfile="${jar.name}" basedir="${class.dir}"/>
  </target>

  <target name="install" depends="jar">
     <mkdir dir="${destdir}/usr/share/java/" />
     <copy file="${jar.name}" todir="${destdir}/usr/share/java/"/>
  </target>
</project>