-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
43 lines (34 loc) · 1.23 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
<project name="orestes-docs" default="dist" basedir=".">
<property name="build" value="build"/>
<property name="build.sources" value="${build}/sources"/>
<property name="dist" value="dist" />
<property name="dist.javadoc" value="${dist}/api" />
<property name="dist.mkdocs" value="${dist}/docs" />
<property name="mkdocs" value="src" />
<target name="javadoc">
<mkdir dir="${build}"/>
<mkdir dir="${build.sources}"/>
<unzip dest="${build.sources}">
<fileset dir="${build}">
<include name="*.jar"/>
</fileset>
</unzip>
<mkdir dir="${dist}" />
<mkdir dir="${dist.javadoc}" />
<javadoc destdir="${dist.javadoc}" sourcepath="${build.sources}" />
</target>
<target name="mkdocs">
<echo>${mkdocs}</echo>
<echo>${dist.mkdocs}</echo>
<exec executable="mkdocs">
<arg value="build"/>
<arg value="--docs-dir=${mkdocs}" />
<arg value="--site-dir=${dist.mkdocs}" />
</exec>
</target>
<target name ="clean">
<delete dir="${dist}"/>
<delete dir="${build.sources}"/>
</target>
<target name="dist" depends="javadoc, mkdocs"/>
</project>