ImranAtBhimsoft / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
1 stars 0 forks source link

Support JDK 1.6 #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(reported by Gordan Krešić over email):

Is there a reason why version 2.6.3 requires Java 7 runtime? I've compiled 
sources successfully for Java 6 target and reading EXIF is working fine (didn't 
test rest of the lib).

If default build machine just got (accidentally :) ) upgraded to Java 7, it is 
still possible to force compilation for 1.6 runtime which will make this lib 
useful on both last and previous runtimes. As you probably know, all it takes 
is to add "source" and "target" attributes to javac ant task, like this:

<javac classpath="${classpath}"
               srcdir="${src}"
               destdir="${output}"
               source="1.6"
               target="1.6"
               debug="${debug}"
               verbose="${verbose}"/>

And if even 1.6 is not required, maybe 1.5 would be better (code compiles even 
for that version, but I didn't test it at all).

Original issue reported on code.google.com by drewnoakes on 18 Dec 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Version 2.6.4 has been released which supports JDK 1.6.

Unfortunately XMPCore.jar is built for JDK 1.6, otherwise metadata-extractor 
could support 1.5. I am planning to introduce a plugin system that will make 
the use of XMPCore optional, in which case it may be possible to support 1.5 as 
well.

Original comment by drewnoakes on 23 Dec 2012 at 5:06