Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/jcl/com.ibm.lang.management-javadoc-829.xml
13183 views
1
<!--
2
Copyright (c) 2016, 2018 IBM Corp. and others
3
4
This program and the accompanying materials are made available under
5
the terms of the Eclipse Public License 2.0 which accompanies this
6
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
or the Apache License, Version 2.0 which accompanies this distribution and
8
is available at https://www.apache.org/licenses/LICENSE-2.0.
9
10
This Source Code may also be made available under the following
11
Secondary Licenses when the conditions for such availability set
12
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
General Public License, version 2 with the GNU Classpath
14
Exception [1] and GNU General Public License, version 2 with the
15
OpenJDK Assembly Exception [2].
16
17
[1] https://www.gnu.org/software/classpath/license.html
18
[2] http://openjdk.java.net/legal/assembly-exception.html
19
20
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
-->
22
<project default="javadoc" basedir=".">
23
24
<target name="setup">
25
<property name="javadoc.dir" location="com.ibm.lang.management-javadoc" />
26
<!-- set path for javadoc for linux from IBM Java8sr5 SDK -->
27
<property name="javadoc.linux" location="/bluebird/vmlab.bluebird.bin/platform/linux386/6480sr5-20170206/sdk/bin/javadoc" />
28
<property name="javadoc.windows" location="W:\bin\sdk6480sr5-20170206\bin\javadoc" />
29
<condition property="javadoc.exe" value="${javadoc.windows}" else="${javadoc.linux}">
30
<os family="windows" />
31
</condition>
32
<echo level="info" message="javadoc.exe=${javadoc.exe}" />
33
<pathconvert property="src.path">
34
<path location="src" />
35
</pathconvert>
36
<tstamp>
37
<format property="year" pattern="yyyy" />
38
</tstamp>
39
<property name="bottom" value="Copyright &amp;copy; 2003, ${year} IBM Corp. and others" />
40
<property name="zip.dest.dir" location="../java.doc/API_doc/non-security/80_api/com.ibm.lang.management" />
41
<condition property="zip.dest.exists">
42
<available file="${zip.dest.dir}" />
43
</condition>
44
</target>
45
46
<target name="generate" depends="setup">
47
<delete dir="${javadoc.dir}" />
48
<mkdir dir="${javadoc.dir}" />
49
<exec executable="${javadoc.exe}" dir="${javadoc.dir}" failonerror="true">
50
<arg value="-sourcepath" />
51
<arg value="${src.path}" />
52
<arg value="com.ibm.lang.management" />
53
<arg value="com.ibm.virtualization.management" />
54
<arg value="openj9.lang.management" />
55
<arg value="-bottom" />
56
<arg value="${bottom}" />
57
<arg value="-overview" />
58
<arg value="${src.path}/management-overview.html" />
59
</exec>
60
61
<!-- remove unwanted line in stylesheet.css: -->
62
<!-- @import url('resources/fonts/dejavu.css'); -->
63
<copy file="${javadoc.dir}/stylesheet.css" tofile="${javadoc.dir}/stylesheet.css.tmp">
64
<filterchain>
65
<linecontainsregexp negate="true">
66
<regexp pattern="@import" />
67
</linecontainsregexp>
68
</filterchain>
69
</copy>
70
<move file="${javadoc.dir}/stylesheet.css.tmp" tofile="${javadoc.dir}/stylesheet.css" />
71
<!-- improve accessibility -->
72
<echo message=".subNav ul.navList a, .subNav ul.subNavList a { color: #002d4a; }${line.separator}" file="${javadoc.dir}/stylesheet.css" append="true" />
73
</target>
74
75
<target name="update-zip" depends="generate" if="zip.dest.exists">
76
<zip basedir="${javadoc.dir}" destfile="${zip.dest.dir}/com.ibm.lang.management.zip" />
77
</target>
78
79
<target name="warn-no-update" depends="generate" unless="zip.dest.exists">
80
<echo level="warning" message="Can't find '${zip.dest.dir}', so not updating com.ibm.lang.management.zip" />
81
</target>
82
83
<target name="javadoc" depends="update-zip, warn-no-update">
84
<echo level="info" message="Done" />
85
</target>
86
87
</project>
88
89