Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/jcl/com.ibm.gpu-javadoc.xml
12609 views
1
<!--
2
/*******************************************************************************
3
* Copyright (c) 2016, 2017 IBM Corp. and others
4
*
5
* This program and the accompanying materials are made available under
6
* the terms of the Eclipse Public License 2.0 which accompanies this
7
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
8
* or the Apache License, Version 2.0 which accompanies this distribution and
9
* is available at https://www.apache.org/licenses/LICENSE-2.0.
10
*
11
* This Source Code may also be made available under the following
12
* Secondary Licenses when the conditions for such availability set
13
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
14
* General Public License, version 2 with the GNU Classpath
15
* Exception [1] and GNU General Public License, version 2 with the
16
* OpenJDK Assembly Exception [2].
17
*
18
* [1] https://www.gnu.org/software/classpath/license.html
19
* [2] http://openjdk.java.net/legal/assembly-exception.html
20
*
21
* 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
22
*******************************************************************************/
23
-->
24
25
<project default="javadoc" basedir=".">
26
27
<target name="setup">
28
<property name="javadoc.dir" location="com.ibm.gpu-javadoc" />
29
<property name="javadoc.exe" location="${java.home}/../bin/javadoc" />
30
<pathconvert property="src.path">
31
<path location="src" />
32
</pathconvert>
33
<tstamp>
34
<format property="year" pattern="yyyy" />
35
</tstamp>
36
<property name="bottom" value="&amp;copy; Copyright (c) 2013, ${year} IBM Corp. and others" />
37
<property name="zip.dest.dir" location="../JavaID Development API docs/non-security/90_api/com.ibm.gpu" />
38
<condition property="zip.dest.exists">
39
<available file="${zip.dest.dir}" />
40
</condition>
41
</target>
42
43
<target name="generate" depends="setup">
44
<delete dir="${javadoc.dir}" />
45
<mkdir dir="${javadoc.dir}" />
46
<exec executable="${javadoc.exe}" dir="${javadoc.dir}" failonerror="true">
47
<arg value="-sourcepath" />
48
<arg value="${src.path}" />
49
<arg value="com.ibm.gpu" />
50
<arg value="-bottom" />
51
<arg value="${bottom}" />
52
</exec>
53
54
<!-- remove unwanted line in stylesheet.css: -->
55
<!-- @import url('resources/fonts/dejavu.css'); -->
56
<copy file="${javadoc.dir}/stylesheet.css" tofile="${javadoc.dir}/stylesheet.css.tmp">
57
<filterchain>
58
<linecontainsregexp negate="true">
59
<regexp pattern="@import" />
60
</linecontainsregexp>
61
</filterchain>
62
</copy>
63
<move file="${javadoc.dir}/stylesheet.css.tmp" tofile="${javadoc.dir}/stylesheet.css" />
64
</target>
65
66
<target name="update-zip" depends="generate" if="zip.dest.exists">
67
<zip basedir="${javadoc.dir}" destfile="${zip.dest.dir}/com.ibm.gpu.zip" />
68
</target>
69
70
<target name="warn-no-update" depends="generate" unless="zip.dest.exists">
71
<echo level="warning" message="Can't find '${zip.dest.dir}', so not updating com.ibm.gpu.zip" />
72
</target>
73
74
<target name="javadoc" depends="generate, update-zip, warn-no-update">
75
<echo level="info" message="Done" />
76
</target>
77
78
</project>
79
80