-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
59 lines (48 loc) · 1.86 KB
/
build.xml
File metadata and controls
59 lines (48 loc) · 1.86 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
<project name="HelloModules" default="jar" basedir=".">
<!-- Use this to reference the BioLockJ from any location. -->
<!-- Requires that variable "BLJ" exists in your system environment. -->
<property environment="env"/>
<property name="BLJ" value="${env.BLJ}"/>
<!-- Use this to reference the BioLockJ from a peer directory -->
<!-- Requires that this project folder is stored in the same dir as the BioLockJ folder. -->
<!--
<property name="BLJ" value="../BioLockJ"/>
-->
<!-- This is the same regardless of how ${BLJ} was set. -->
<property name="BLJ.JAR" value="${BLJ}/dist/BioLockJ.jar"/>
<path id="lib.path">
<fileset dir="${BLJ}"/>
</path>
<target name="blj">
<echo message="BLJ: ${BLJ}"/>
<echo message="BLJ.Jar: ${BLJ.JAR}"/>
<available file="${BLJ.JAR}" property="blj.jar.present"/>
</target>
<target name="clean" depends="blj" if="blj.jar.present">
<delete dir="dist"/>
<delete dir="bin"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin" classpathref="lib.path"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="dist"/>
<jar destfile="dist/${ant.project.name}.jar" basedir="bin">
</jar>
</target>
<target name="docs" depends="jar">
<delete dir="mkdocs/docs"/>
<mkdir dir="mkdocs/docs"/>
<java classpath="${BLJ.JAR}:dist/${ant.project.name}.jar" classname="biolockj.api.BuildDocs">
<arg value="mkdocs/docs"/>
<arg value="com"/>
</java>
<move file="mkdocs/docs/all-modules.md" tofile="mkdocs/docs/index.md" />
</target>
<target name="userguide" depends="docs">
<exec executable="mkdocs" dir="mkdocs">
<arg value="build"/>
</exec>
</target>
</project>