Changeset 9133 in josm for trunk/build.xml


Ignore:
Timestamp:
2015-12-15T15:45:37+01:00 (3 years ago)
Author:
bastiK
Message:

see #12186 - add more projections
The list of projections is now generated during the build process:
scripts/BuildEpsgList.java runs and creates data/projection/custom-epsg which is generated by combining data_nodist/projection/josm-epsg (a list maintained by the JOSM team) and data_nodist/projection/epsg (an upstream list from the proj.4 project, git: 3795cdf)
The ant task epsg cares for this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r9079 r9133  
    1515    <property name="javacc.home" location="tools"/>
    1616    <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/>
     17    <property name="epsg.output" location="data/projection/custom-epsg"/>
    1718    <property name="groovy.jar" location="tools/groovy-all-2.4.5.jar"/>
    1819    <!-- build parameter: compression level (ant -Dclevel=N)
     
    101102      ** Main target that builds JOSM and checks XML against schemas
    102103    -->
    103     <target name="dist" depends="compile,create-revision,check-schemas">
     104    <target name="dist" depends="compile,create-revision,check-schemas,epsg">
    104105        <echo>Revision ${version.entry.commit.revision}</echo>
    105106        <copy file="CONTRIBUTION" todir="build"/>
     
    287288    <target name="clean">
    288289        <delete dir="build"/>
     290        <delete dir="build2"/>
    289291        <delete dir="dist"/>
    290292        <delete dir="${mapcss.dir}/parsergen"/>
    291293        <delete file="${src.dir}/org/w3/_2001/xmlschema/Adapter1.java"/>
    292294        <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
     295        <delete file="${epsg.output}"/>
    293296    </target>
    294297    <path id="test.classpath">
     
    640643        </java>
    641644    </target>
     645    <!-- compile build script for generating projection list -->
     646    <target name="epsg-compile" depends="compile">
     647        <mkdir dir="build2"/>
     648        <javac sourcepath="" srcdir="scripts"
     649            destdir="build2" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8" classpath="build">
     650        </javac>
     651    </target>
     652    <!-- generate projection list -->
     653    <target name="epsg" depends="epsg-compile">
     654        <touch file="${epsg.output}"/>
     655        <java classname="BuildProjectionDefinitions">
     656            <classpath>
     657                <pathelement path="."/>
     658                <pathelement path="build"/>
     659                <pathelement path="build2"/>
     660            </classpath>
     661        </java>
     662    </target>
    642663</project>
Note: See TracChangeset for help on using the changeset viewer.