-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathbuild.xml
More file actions
67 lines (60 loc) · 2.55 KB
/
Copy pathbuild.xml
File metadata and controls
67 lines (60 loc) · 2.55 KB
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
<project name="JavaConcurrent" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<property name="build" location="${dist}/"/>
<target name="clean"
description="clean up">
<!-- Delete the ${dist} directory trees -->
<delete dir="${dist}"/>
</target>
<target name="init">
<mkdir dir="dist/images"/>
</target>
<target name="unzip_jars" depends="init">
<unzip src="${lib}/jsr166y.jar" dest="${build}"/>
</target>
<target name="compile" depends="unzip_jars"
description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="true" debuglevel="lines,source" target="1.6">
<exclude name="vgrazi/concurrent/samples/work/**"/>
</javac>
</target>
<target name="copy_assets" depends="compile">
<copy todir="dist/images">
<fileset dir="images">
<include name="*.gif"/>
<include name="*.png"/>
<include name="*.jpg"/>
<include name="*.htm?"/>
<include name="*.xml"/>
</fileset>
</copy>
</target>
<target name="dist" depends="copy_assets"
description="generate the distribution">
<delete file="${dist}/concurrentanimated.jar"/>
<!-- Put everything in ${build} into the jar file -->
<jar jarfile="${dist}/concurrentanimated.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="vgrazi.concurrent.samples.launcher.ConcurrentExampleLauncher"/>
</manifest>
<exclude name="concurrentanimatedapplet.jar"/>
</jar>
</target>
<target name="package-applet" depends="clean,compile"
description="generate the applet">
<delete file="${dist}/concurrentanimatedapplet.jar"/>
<!-- Put everything in ${build} into the jar file -->
<jar jarfile="${dist}/concurrentanimatedapplet.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="vgrazi.concurrent.samples.launcher.ConcurrentExampleLauncher"/>
</manifest>
</jar>
</target>
<target name="run" depends="dist">
<java jar="dist/concurrentAnimated.jar" fork="true"/>
</target>
</project>