Ignore:
Timestamp:
2015-06-03T17:43:57+02:00 (9 years ago)
Author:
donvip
Message:

[josm_photo_geotagging] use commons-imaging plugin

Location:
applications/editors/josm/plugins/photo_geotagging
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photo_geotagging/.classpath

    r30416 r31204  
    44        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
    55        <classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
     6        <classpathentry combineaccessrules="false" kind="src" path="/JOSM-commons-imaging"/>
    67        <classpathentry kind="output" path="bin"/>
    78</classpath>
  • applications/editors/josm/plugins/photo_geotagging/build.xml

    r30967 r31204  
    1313    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
    1414    <property name="plugin.canloadatruntime" value="true"/>
     15    <property name="plugin.requires" value="commons-imaging"/>
    1516
    1617    <!-- ** include targets that all plugins have in common ** -->
    1718    <import file="../build-common.xml"/>
    1819
    19     <!--
    20     **********************************************************
    21     ** compile - complies the source tree
    22     ** Overrides the target from build-common.xml
    23     **********************************************************
    24     -->
    25     <target name="compile" depends="init">
    26         <echo message="compiling sanselan sources ... "/>
    27         <javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1" includeantruntime="false">
    28             <compilerarg value="-Xlint:deprecation"/>
    29         </javac>
    30         <echo message="compiling sources for ${plugin.jar} ..."/>
    31         <javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    32             <compilerarg value="-Xlint:deprecation"/>
    33             <compilerarg value="-Xlint:unchecked"/>
    34         </javac>
    35     </target>
     20    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
     21        <include name="commons-imaging.jar"/>
     22    </fileset>
    3623
    3724</project>
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTagger.java

    r30887 r31204  
    1717import org.apache.commons.imaging.ImageWriteException;
    1818import org.apache.commons.imaging.Imaging;
    19 import org.apache.commons.imaging.common.IImageMetadata;
     19import org.apache.commons.imaging.common.ImageMetadata;
    2020import org.apache.commons.imaging.common.RationalNumber;
    2121import org.apache.commons.imaging.formats.jpeg.JpegImageMetadata;
     
    5454        TiffOutputSet outputSet = null;
    5555
    56         IImageMetadata metadata = Imaging.getMetadata(jpegImageFile);
     56        ImageMetadata metadata = Imaging.getMetadata(jpegImageFile);
    5757        JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata;
    5858        if (null != jpegMetadata) {
Note: See TracChangeset for help on using the changeset viewer.