-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.xml
62 lines (55 loc) · 2.02 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="MrSim" default="dist" basedir=".">
<description>Build file for MrSim</description>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Nothing else to do -->
<mkdir dir="doc"/>
<mkdir dir="Source/MapReduce/bin"/>
<mkdir dir="Source/Examples/bin"/>
</target>
<target name="compile" depends="init" description="Compile the source">
<!-- Compile the java code for each project -->
<javac
srcdir="Source/MapReduce/src"
destdir="Source/MapReduce/bin"
includeantruntime="false" />
<javac
srcdir="Source/Examples/src"
destdir="Source/Examples/bin"
classpath="Source/MapReduce/bin"
includeantruntime="false" />
</target>
<target name="javadoc" depends="init" description="Generate the documentation">
<javadoc packagenames="ca.uqac.dim.mapreduce.*"
sourcepath="Source/MapReduce/src"
excludepackagenames=""
defaultexcludes="yes"
destdir="doc"
author="true"
version="true"
use="true"
encoding="UTF-8"
charset="UTF-8"
docencoding="UTF-8"
windowtitle="MrSim Documentation">
<doctitle><![CDATA[<h1>MrSim Documentation</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2011-2015 Sylvain Hallé. All Rights Reserved.</i>]]></bottom>
<link href="http://docs.oracle.com/javase/7/docs/api/"/>
</javadoc>
</target>
<target name="create_jar" depends="compile,javadoc" description="Create the runnable JAR">
<jar destfile="mrsim.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="Source/MapReduce/bin"/>
<fileset dir="Source/MapReduce/src"/>
<fileset dir="doc"/>
</jar>
</target>
<target name="dist" depends="create_jar" description="Create distribution">
<!-- Do nothing -->
</target>
</project>