From: Jakub Skoczen Date: Mon, 31 Mar 2014 12:22:25 +0000 (+0200) Subject: Workaround for MNG-3328 X-Git-Tag: v1.4~4^2 X-Git-Url: http://git.indexdata.com/?p=yaz4j-moved-to-github.git;a=commitdiff_plain;h=e8d742a9988f62bf7413243ae28b1d4eafc2ffe5 Workaround for MNG-3328 Maven profile activation is buggy and evaluates criteria as an ORed list. Thus it's impossible to match environment for jdk > 1.6 AND os.family = mac This workaround uses the java.vm.vendor property which is 'Apple Inc.' only for apple provided JDKs (mac only and jdk < 1.7). --- diff --git a/pom.xml b/pom.xml index 9306750..49e9ac9 100644 --- a/pom.xml +++ b/pom.xml @@ -251,7 +251,7 @@ - linux + linux so yaz-config @@ -317,10 +317,9 @@ - + osx - 1.6 mac @@ -328,8 +327,8 @@ osx dylib - mac - ${java.home}/../Headers + darwin + ${java.home}/../include unix @@ -337,19 +336,16 @@ - - osx-oracle + + apple-jdk - [1.7,) - - mac - + + java.vendor + Apple Inc. + - osx - dylib - darwin - ${java.home}/../include + ${java.home}/../Headers unix