-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.xml
74 lines (66 loc) · 2.96 KB
/
tasks.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
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<project name="IndexedHBase-Tasks" default="dist" basedir=".">
<description>
Build file for IndexedHBase
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="docs" location="docs"/>
<property environment="env"/>
<!-- javadoc properties -->
<property name="header" value="The IndexedHBase Project @ IU SALSAHPC Lab"/>
<property name="Release" value="0.2"/>
<property name="DatePosted" value="01/01/2014"/>
<property name="windowtitle" value="IndexedHBase Documentation - ${Release}"/>
<property name="doctitle" value="<h3> Package List for sources in the IndexedHBase Project <br>Release-${Release} ${DatePosted} <br>@ the SALSAHPC Lab - Indiana University </h3>"/>
<path id="project.class.path">
<fileset dir="${lib.dir}">
<include name="lib/*.jar"/>
</fileset>
<fileset dir="${env.HBASE_HOME}">
<include name="lib/*.jar"/>
</fileset>
</path>
<target name="init" depends="clean">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="on" debuglevel="lines,vars,source" includeantruntime="false">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
<!-- Put everything in ${build} into the IndexedHBase-<version>.jar file -->
<jar jarfile="${dist}/lib/${ant.project.name}-${Release}.jar" basedir="${build}"/>
<copy file="${dist}/lib/${ant.project.name}-${Release}.jar" todir="${lib.dir}/lib"/>
</target>
<target name="javadoc" description="Generates javadoc" depends="compile">
<delete dir="${docs}"/>
<echo message="Generating javadoc..." />
<mkdir dir="${docs}" />
<javadoc sourcepath="${src}" destdir="${docs}" useexternalfile="no" maxmemory="1024m" doctitle="${doctitle}" windowtitle="${windowtitle}" author="false" classpathref="project.class.path" stylesheetfile="docs/stylesheet.css">
<link href="http://docs.oracle.com/javase/7/docs/api/"/>
<bottom>
<![CDATA[<font size=2>For comments and suggestions please send e-mail to <a href="mailto:gao4@indiana.edu" The IndexedHBase Project</a>
<br>
</font>]]>
</bottom>
</javadoc>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete file="${lib.dir}/lib/${ant.project.name}.jar"/>
</target>
</project>