[96989] trunk/dports/java/commons-daemon/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Thu Aug 23 13:25:51 PDT 2012


Revision: 96989
          https://trac.macports.org/changeset/96989
Author:   ciserlohn at macports.org
Date:     2012-08-23 13:25:50 -0700 (Thu, 23 Aug 2012)
Log Message:
-----------
commons-daemon: pass JAVA_HOME to ant (fixes #35786 on Mountain Lion)

The JAVA_HOME environment variable set by the java port group get lost when ant
is carried out by the tcl system command. If JAVA_HOME is not set ant assumes
JAVA_HOME to be /System/Library/Frameworks/JavaVM.framework/Home. But newer JDKs
install in /Library/Java/JavaVirtualMachines and will cause ant to fail.

Modified Paths:
--------------
    trunk/dports/java/commons-daemon/Portfile

Modified: trunk/dports/java/commons-daemon/Portfile
===================================================================
--- trunk/dports/java/commons-daemon/Portfile	2012-08-23 20:13:56 UTC (rev 96988)
+++ trunk/dports/java/commons-daemon/Portfile	2012-08-23 20:25:50 UTC (rev 96989)
@@ -53,8 +53,7 @@
 use_parallel_build  no
 
 pre-build {
-    system "cd ${worksrcpath} && \
-        ant dist -Djunit.jar=${prefix}/share/java/junit.jar"
+    system -W ${worksrcpath} "JAVA_HOME=${java_home} ant dist -Djunit.jar=${prefix}/share/java/junit.jar"
 }
 
 destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120823/84d3d71d/attachment-0001.html>


More information about the macports-changes mailing list