Changeset 34124 in osm for applications/viewer


Ignore:
Timestamp:
2018-03-26T01:34:37+02:00 (6 years ago)
Author:
donvip
Message:

Generate HTML5 javadoc for Java >= 9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/build.xml

    r33805 r34124  
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    2 <project default="all" name="Compile and build java classes plus jar archives">
     2<project default="all" name="jmapviewer" xmlns:if="ant:if" xmlns:unless="ant:unless">
     3
     4        <property name="java.lang.version" value="1.8" />
     5        <!-- For Java9-specific stuff -->
     6        <condition property="isJava9">
     7                <matches string="${ant.java.version}" pattern="(1.)?(9|1[0-9])" />
     8        </condition>
    39
    410        <target name="all" depends="clean,build,svn_info,pack,create_run_jar,spotbugs,checkstyle,javadoc,create_release_zip,create_source_release_zip" />
     
    1521
    1622        <target name="build">
    17                 <javac srcdir="src" destdir="bin" source="1.8" target="1.8" debug="true" includeantruntime="false" encoding="UTF-8">
     23                <javac srcdir="src" destdir="bin" source="${java.lang.version}" target="${java.lang.version}" debug="true" includeantruntime="false" encoding="UTF-8">
    1824                        <include name="org/openstreetmap/gui/jmapviewer/**" />
    1925                </javac>
     
    2531                </copy>
    2632        </target>
    27        
     33
    2834    <target name="svn_info" description="Get SVN info for use in JAR/ZIP filenames.">
    2935        <!-- Get the svn ReleaseVersion property -->
     
    117123            <doctitle><![CDATA[<h2>JMapViewer - Javadoc</h2>]]></doctitle>
    118124            <bottom><![CDATA[<a href="https://josm.openstreetmap.de/">JMapViewer</a>]]></bottom>
     125            <arg value="-html5" if:set="isJava9" />
    119126        </javadoc>
    120127    </target>
Note: See TracChangeset for help on using the changeset viewer.