Path: blob/master/jcl/com.ibm.gpu-javadoc.xml
12609 views
<!--1/*******************************************************************************2* Copyright (c) 2016, 2017 IBM Corp. and others3*4* This program and the accompanying materials are made available under5* the terms of the Eclipse Public License 2.0 which accompanies this6* 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 and8* is available at https://www.apache.org/licenses/LICENSE-2.0.9*10* This Source Code may also be made available under the following11* Secondary Licenses when the conditions for such availability set12* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU13* General Public License, version 2 with the GNU Classpath14* Exception [1] and GNU General Public License, version 2 with the15* OpenJDK Assembly Exception [2].16*17* [1] https://www.gnu.org/software/classpath/license.html18* [2] http://openjdk.java.net/legal/assembly-exception.html19*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-exception21*******************************************************************************/22-->2324<project default="javadoc" basedir=".">2526<target name="setup">27<property name="javadoc.dir" location="com.ibm.gpu-javadoc" />28<property name="javadoc.exe" location="${java.home}/../bin/javadoc" />29<pathconvert property="src.path">30<path location="src" />31</pathconvert>32<tstamp>33<format property="year" pattern="yyyy" />34</tstamp>35<property name="bottom" value="&copy; Copyright (c) 2013, ${year} IBM Corp. and others" />36<property name="zip.dest.dir" location="../JavaID Development API docs/non-security/90_api/com.ibm.gpu" />37<condition property="zip.dest.exists">38<available file="${zip.dest.dir}" />39</condition>40</target>4142<target name="generate" depends="setup">43<delete dir="${javadoc.dir}" />44<mkdir dir="${javadoc.dir}" />45<exec executable="${javadoc.exe}" dir="${javadoc.dir}" failonerror="true">46<arg value="-sourcepath" />47<arg value="${src.path}" />48<arg value="com.ibm.gpu" />49<arg value="-bottom" />50<arg value="${bottom}" />51</exec>5253<!-- remove unwanted line in stylesheet.css: -->54<!-- @import url('resources/fonts/dejavu.css'); -->55<copy file="${javadoc.dir}/stylesheet.css" tofile="${javadoc.dir}/stylesheet.css.tmp">56<filterchain>57<linecontainsregexp negate="true">58<regexp pattern="@import" />59</linecontainsregexp>60</filterchain>61</copy>62<move file="${javadoc.dir}/stylesheet.css.tmp" tofile="${javadoc.dir}/stylesheet.css" />63</target>6465<target name="update-zip" depends="generate" if="zip.dest.exists">66<zip basedir="${javadoc.dir}" destfile="${zip.dest.dir}/com.ibm.gpu.zip" />67</target>6869<target name="warn-no-update" depends="generate" unless="zip.dest.exists">70<echo level="warning" message="Can't find '${zip.dest.dir}', so not updating com.ibm.gpu.zip" />71</target>7273<target name="javadoc" depends="generate, update-zip, warn-no-update">74<echo level="info" message="Done" />75</target>7677</project>787980