Changeset 96989


Ignore:
Timestamp:
Aug 23, 2012, 8:25:50 PM (6 years ago)
Author:
ciserlohn@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/java/commons-daemon/Portfile

    r96959 r96989  
    5454
    5555pre-build {
    56     system "cd ${worksrcpath} && \
    57         ant dist -Djunit.jar=${prefix}/share/java/junit.jar"
     56    system -W ${worksrcpath} "JAVA_HOME=${java_home} ant dist -Djunit.jar=${prefix}/share/java/junit.jar"
    5857}
    5958
Note: See TracChangeset for help on using the changeset viewer.