|
21 | 21 | </not> |
22 | 22 | </condition> |
23 | 23 |
|
| 24 | + <macrodef name="generate-javadoc"> |
| 25 | + <attribute name="access-level" default="protected"/> |
| 26 | + <attribute name="output-subdir"/> |
| 27 | + <sequential> |
| 28 | + <mkdir dir="${docs.dir}/@{output-subdir}"/> |
| 29 | + <javadoc destdir="${docs.dir}/@{output-subdir}" |
| 30 | + source="1.8" |
| 31 | + encoding="UTF-8" |
| 32 | + use="true" |
| 33 | + author="true" |
| 34 | + version="true" |
| 35 | + failonerror="true" |
| 36 | + access="@{access-level}"> |
| 37 | + <fileset dir="${src.dir}" includes="**/*.java"/> |
| 38 | + <link href="${javadoc.api.url}"/> |
| 39 | + <!-- Uncomment to resolve references in Javadoc comments to lib/ jars. --> |
| 40 | + <!-- |
| 41 | + <classpath> |
| 42 | + <pathelement path="${build.dir}"/> |
| 43 | + <fileset dir="lib" includes="**/*.jar" erroronmissingdir="false"/> |
| 44 | + </classpath> |
| 45 | + --> |
| 46 | + </javadoc> |
| 47 | + </sequential> |
| 48 | + </macrodef> |
24 | 49 |
|
25 | 50 | <condition property="isMac"> |
26 | 51 | <os family="mac"/> |
|
85 | 110 | <java jar="${jar.dir}/${app.name}.jar" fork="true"/> |
86 | 111 | </target> |
87 | 112 |
|
88 | | - <target name="javadoc" depends="preflight" description="Generate Javadoc (works for unnamed or named packages)"> |
89 | | - <mkdir dir="${docs.dir}"/> |
90 | | - <javadoc destdir="${docs.dir}" |
91 | | - source="1.8" |
92 | | - encoding="UTF-8" |
93 | | - use="true" |
94 | | - author="true" |
95 | | - version="true" |
96 | | - failonerror="true"> |
97 | | - <fileset dir="${src.dir}" includes="**/*.java"/> |
98 | | - |
99 | | - <link href="${javadoc.api.url}"/> |
100 | | - <!-- Uncomment to resolve references in Javadoc comments. --> |
101 | | - <!-- |
102 | | - <classpath> |
103 | | - <pathelement path="${build.dir}"/> |
104 | | - <fileset dir="lib" includes="**/*.jar"/> |
105 | | - </classpath> |
106 | | - --> |
107 | | - </javadoc> |
| 113 | + <target name="javadoc" depends="preflight" description="Generate standard API documentation"> |
| 114 | + <generate-javadoc access-level="protected" output-subdir="api"/> |
108 | 115 | </target> |
109 | 116 |
|
| 117 | + <target name="javadoc-internal" depends="preflight" description="Generate internal documentation (includes private members)"> |
| 118 | + <generate-javadoc access-level="private" output-subdir="internal"/> |
| 119 | + </target> |
| 120 | + |
| 121 | + <target name="javadoc-all" depends="javadoc, javadoc-internal" description="Generate both standard and internal documentation sets"/> |
| 122 | + |
110 | 123 | <target name="package" description="Build the native installer for the current OS (DMG, DEB, or MSI)"> |
111 | 124 | <antcall target="dmg"/> |
112 | 125 | <antcall target="debian"/> |
|
0 commit comments