Support Oracle JDKs on Mac (>= 1.7)
authorJakub Skoczen <jakub@indexdata.dk>
Sun, 30 Mar 2014 16:33:14 +0000 (18:33 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Sun, 30 Mar 2014 16:33:14 +0000 (18:33 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index 5ccbea7..9306750 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       <!-- osx is both 'unix' and 'mac' -->
       <id>osx</id>
       <activation>
+        <jdk>1.6</jdk>
         <os>
           <family>mac</family>
         </os>
         <module>unix</module>
       </modules>
     </profile>
+
+    <profile>
+      <!-- osx is both 'unix' and 'mac', oracle JDK has different layout -->
+      <id>osx-oracle</id>
+      <activation>
+        <jdk>[1.7,)</jdk>
+        <os>
+          <family>mac</family>
+        </os>
+      </activation>
+      <properties>
+        <platform>osx</platform>
+        <packaging>dylib</packaging>
+        <javahOS>darwin</javahOS>
+        <jdkIncludePath>${java.home}/../include</jdkIncludePath>
+      </properties>
+      <modules>
+        <module>unix</module>
+      </modules>
+    </profile>
+
   </profiles>
 </project>