aboutsummaryrefslogtreecommitdiffstats
path: root/it/projects/java-bytecode/build.xml
blob: d24c2b88bac9d97d523969447ade8bb779e1de95 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Java Bytecode" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">

  <property name="lib.dir" value="../ant-libs"/>

  <property name="build.dir" value="build"/>

  <property name="classes.dir" value="${build.dir}/classes"/>

  <path id="classpath">
    <fileset dir="./lib" includes="*.jar" />
  </path>

  <target name="clean" description="Remove all files created by the build process.">
    <delete dir="${build.dir}" />
  </target>

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

  <target name="compile" depends="init">
    <javac destdir="${classes.dir}" classpathref="classpath" fork="true" debug="true" includeAntRuntime="false">
      <src path="src"/>
    </javac>
  </target>

  <target name="all"
          depends="clean,compile" />

</project>