-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild_doc.xml
64 lines (52 loc) · 2.22 KB
/
build_doc.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Telosys" default="gen_and_zip">
<!-- Init Telosys version from common properties file -->
<property file="build_doc.properties" />
<property name="title" value="Telosys generator v ${version} - Context objects" />
<property name="dist_dir" value="dist" />
<property name="doc_dir" value="${dist_dir}/doc" />
<property name="doc_zip_file" value="${dist_dir}/telosys-tools-${telosys_version}_doc.zip" />
<!-- ============================================================================== -->
<!-- Init -->
<!-- ============================================================================== -->
<target name="init">
<echo message="ANT version : ${ant.version}" />
<echo message="JAVA version : ${ant.java.version}" />
<echo message="Title = ${title}" />
<echo message="Doc dir = ${doc_dir}" />
<delete dir="${doc_dir}" />
<mkdir dir="${doc_dir}" />
</target>
<!-- ============================================================================== -->
<!-- Generate JavaDoc -->
<!-- ============================================================================== -->
<target name="gen-javadoc" depends="init" >
<javadoc
doctitle="${title}"
windowtitle="${title}"
sourcepath="src"
packagenames="doc.*"
destdir="${doc_dir}"
access="protected"
use="false"
notree="true"
nonavbar="true"
noindex="true"
splitindex="false"
author="false"
version="true"
nodeprecatedlist="false"
nodeprecated="false"
/>
</target>
<!-- ============================================================================== -->
<!-- Zip JavaDoc -->
<!-- ============================================================================== -->
<target name="gen_and_zip" depends="gen-javadoc">
<echo message="ZIP FILE = ${doc_zip_file} " />
<delete file="${doc_zip_file}" />
<zip destfile="${doc_zip_file}" >
<zipfileset dir="${doc_dir}" prefix="javadoc" />
</zip>
</target>
</project>