Skip to content

Instantly share code, notes, and snippets.

@schlosna
Created July 2, 2011 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlosna/1059756 to your computer and use it in GitHub Desktop.
Save schlosna/1059756 to your computer and use it in GitHub Desktop.
macosx-port compile script
#!/bin/sh
DROP_DIR=`pwd`/drops
# Download JAXP/JAF and JAXWS into DROP_DIR
# tweaked version of http://code.google.com/p/openjdk-osx-build/source/browse/trunk/build-commons.sh
function downloadDropJars() {
# keep in sync with jaxp/jaxp.properties
JAXP_DROP=jaxp145_01.zip
# keep in sync with jaxws/jaxws.properties
JAF_DROP=jdk7-jaf-2010_08_19.zip
JAXWS_DROP=jdk7-jaxws2_2_4-b03-2011_05_27.zip
if [ ! -d ${DROP_DIR} ]; then
mkdir -p ${DROP_DIR}
fi
if [ ! -f ${DROP_DIR}/${JAXP_DROP} ]; then
echo "downloading ${JAXP_DROP} into ${DROP_DIR}"
curl -L http://download.java.net/jaxp/1.4.5/${JAXP_DROP} -o ${DROP_DIR}/${JAXP_DROP}
fi
if [ ! -f ${DROP_DIR}/${JAF_DROP} ]; then
echo "downloading ${JAF_DROP} into ${DROP_DIR}"
curl -L http://java.net/downloads/jax-ws/JDK7/${JAF_DROP} -o ${DROP_DIR}/${JAF_DROP}
fi
if [ ! -f ${DROP_DIR}/${JAXWS_DROP} ]; then
echo "downloading ${JAXWS_DROP} into ${DROP_DIR}"
curl -L http://download.java.net/glassfish/components/jax-ws/openjdk/jdk7/${JAXWS_DROP} -o ${DROP_DIR}/${JAXWS_DROP}
fi
}
downloadDropJars
APPLE_JAVA_6_HOME=`/usr/libexec/java_home -v 1.6`
CACERTS_FILE=${APPLE_JAVA_6_HOME}/lib/security/cacerts
unset LC_ALL LANG CLASSPATH JAVA_HOME LD_LIBRARY_PATH;
time \
env -i \
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin \
ANT_OPTS="-Djavax.net.ssl.trustStore=${CACERTS_FILE}" \
make \
ALLOW_DOWNLOADS=true \
ALT_BOOTDIR=${APPLE_JAVA_6_HOME} \
ALT_CACERTS_FILE=${CACERTS_FILE} \
ALT_DROPS_DIR=${DROP_DIR} \
ALWAYS_PASS_TEST_GAMMA=true \
CC=/Developer/usr/bin/llvm-gcc-4.2 \
CXX=/Developer/usr/bin/llvm-g++-4.2 \
HOTSPOT_BUILD_JOBS=2 \
NO_DOCS=true \
PARALLEL_COMPILE_JOBS=2 \
SA_APPLE_BOOT_JAVA=true \
$@ 2>&1 | \
tee build.log \
&& ./build/macosx-universal/j2sdk-bundle/1.7.0.jdk/Contents/Home/bin/java -version
diff --git a/jaxws.properties b/jaxws.properties
--- a/jaxws.properties
+++ b/jaxws.properties
@@ -36,1 +36,1 @@
-jaf_src.master.bundle.url.base=https://java.net/downloads/jax-ws/JDK7
+jaf_src.master.bundle.url.base=http://java.net/downloads/jax-ws/JDK7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment