Ignore:
Timestamp:
2023-10-26T22:28:32+02:00 (3 years ago)
Author:
taylor.smock
Message:

See #23218: Fix compiling OpeningHoursEditor with arguments pointing to a different JOSM source directory

This also fixes some lint issues in the plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/build.xml

    r35378 r36183  
    1616    <import file="../build-common.xml"/>
    1717       
    18         <property name="parser.dir" location="${plugin.src.dir}/org/openstreetmap/josm/plugins/ohe/parser"/>
     18    <property name="parser.dir" location="${plugin.src.dir}/org/openstreetmap/josm/plugins/ohe/parser"/>
    1919       
    20     <target name="javacc" depends="init" unless="javacc.notRequired">
     20    <target name="javacc" depends="resolve-tools" unless="javacc.notRequired">
    2121        <ivy:cachepath file="${core.tools.ivy}" pathid="javacc.classpath" conf="javacc"/>
    2222        <java classname="javacc" fork="true" failonerror="true">
     
    3030    </target>
    3131
    32         <!--
    33     **********************************************************
    34     ** compile - compiles the source tree
    35     **********************************************************
    36     -->
    37     <target name="compile" depends="init, javacc">
    38         <echo message="compiling sources for ${plugin.jar} ... "/>
    39         <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
    40             <classpath>
    41                 <pathelement path="${plugin.build.dir}"/>
    42                 <pathelement location="${josm}"/>
    43             </classpath>
    44             <compilerarg value="-Xlint:deprecation"/>
    45             <compilerarg value="-Xlint:unchecked"/>
    46         </javac>
     32    <target name="pre-compile" depends="javacc">
     33      <!-- ensure that we build the javacc classes -->
    4734    </target>
    4835
Note: See TracChangeset for help on using the changeset viewer.