forked from svn2github/fleXive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.javadoc.xml
106 lines (91 loc) · 4.02 KB
/
build.javadoc.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<project name="flexive-javadoc" basedir=".">
<import file="build.shared-properties.xml"/>
<!-- ========================== properties ========================== -->
<property name="base.jdoc.dir" value="${basedir}/javadoc"/>
<property name="javadoc.index.file" value="${base.jdoc.dir}/index.html"/>
<!-- ========================== paths =============================== -->
<!-- ========================== tasks / macros ====================== -->
<!-- Execute javadoc on the given packages. name and packagenames are mandatory parameters. -->
<macrodef name="jdoc-call">
<attribute name="name"
description="Name of the API being documented. The name is used as the subdirectory name in ${base.jdoc.dir}."/>
<attribute name="packagenames"/>
<attribute name="srcdir"/>
<attribute name="excludepackagenames" default=""/>
<attribute name="windowtitle" default="@{name} JavaDoc"/>
<attribute name="doctitle" default="@{name}"/>
<attribute name="destdir" default="${base.jdoc.dir}/@{name}" description="Target Javadoc directory"/>
<sequential>
<delete dir="@{destdir}" failonerror="false"/>
<mkdir dir="@{destdir}"/>
<javadoc
packagenames="@{packagenames}"
excludepackagenames="@{excludepackagenames}"
destdir="@{destdir}"
author="true"
version="true"
use="true"
package="true"
windowtitle="@{windowtitle}"
doctitle="@{doctitle}"
extdirs="${flexive.lib.dir}"
>
<sourcepath>
<pathelement path="@{srcdir}"/>
</sourcepath>
<classpath>
<!--<pathelement path="${build.jar.dir}/${jar_prepend}Shared.jar"/>-->
<fileset dir="${flexive.lib.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javadoc>
<!-- Append entry to index file -->
<mkdir dir="${base.jdoc.dir}"/>
<echo file="${javadoc.index.file}" append="true">
<p>
<a href="@{name}/index.html">@{windowtitle}</a>
</p>
</echo>
</sequential>
</macrodef>
<target name="javadoc" depends="javadoc.clean,javadoc.shared,javadoc.ejb,javadoc.core,javadoc.ui.jsf,javadoc.ui.jsf-components"/>
<target name="javadoc.clean">
<delete dir="${base.jdoc.dir}" failonerror="false"/>
<mkdir dir="${base.jdoc.dir}"/>
<echo file="${javadoc.index.file}">
<h3>flexive JavaDoc</h3>
</echo>
</target>
<target name="javadoc.shared">
<jdoc-call
name="shared"
packagenames="com.flexive.shared.*"
srcdir="${flexive.src.framework.dir}"/>
</target>
<target name="javadoc.ejb">
<jdoc-call
name="ejb"
packagenames="com.flexive.shared.interfaces.*"
srcdir="${flexive.src.framework.dir}"/>
</target>
<target name="javadoc.core">
<jdoc-call
name="core"
packagenames="com.flexive.core.*"
srcdir="${flexive.src.framework.dir}"/>
</target>
<target name="javadoc.ui.jsf">
<jdoc-call
name="jsf"
packagenames="com.flexive.war.*"
srcdir="${flexive.src.framework.dir};${flexive.src.ui.jsf.dir};${flexive.src.ui.shared.dir};${flexive.src.ui.components.dir}"/>
</target>
<target name="javadoc.ui.jsf-components">
<jdoc-call
name="jsf-components"
packagenames="com.flexive.faces.*"
srcdir="${flexive.src.framework.dir};${flexive.src.ui.shared.dir};${flexive.src.ui.components.dir}"/>
</target>
</project>