File: build.xml

package info (click to toggle)
jaranalyzer 1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 416 kB
  • ctags: 347
  • sloc: java: 1,519; xml: 197; sh: 68; makefile: 17
file content (37 lines) | stat: -rw-r--r-- 1,140 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
<project name="HelloWorld" default="dist" basedir=".">

  <!-- set global properties for this build -->
  <property name="src" location="./src"/>
  <property name="build" location="./build"/>
  <property name="dist" location="./dist"/>

  <target name="clean"
          description="clean up" >
      <!-- Delete the ${build} and ${dist} directory trees -->
      <delete dir="${build}"/>
      <delete dir="${dist}"/>
  </target>
  
  <target name="init" depends="clean">
    <!-- Create the time stamp -->
    <mkdir dir="${build}"/>
    <mkdir dir="${dist}"/>
  </target>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}">
		<classpath>
			<pathelement location="${src}"/>
		</classpath>
    </javac>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <jar jarfile="${dist}/Test1.jar" basedir="${build}" includes="**/Test1.class"/>
    <jar jarfile="${dist}/Test2.jar" basedir="${build}" includes="**/Test2.class"/>
  </target>

</project>