Skip to content

Commit

Permalink
Switched to using jcompilo for V2 Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbodart committed May 23, 2015
1 parent f9751bf commit 5c8a1e5
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 263 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build/artifacts
.ant-targets-build.xml
*.orig
utterlyidle.ipr
lib/jcompilo.jar
lib/build
lib/runtime
lib/optional
Expand Down
111 changes: 0 additions & 111 deletions build.xml

This file was deleted.

104 changes: 0 additions & 104 deletions build/macros.xml

This file was deleted.

48 changes: 0 additions & 48 deletions build/shavenmaven.xml

This file was deleted.

31 changes: 31 additions & 0 deletions jcompilo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
set -e

JAVA_VERSION=${JAVA_VERSION-8}
JAVA_OPTS="-server -XX:+TieredCompilation -Djava.net.useSystemProxies=true ${JAVA_OPTS}"
BUILD_NUMBER=${BUILD_NUMBER-dev.build}
version=1.6
artifact=jcompilo
group=com/googlecode/${artifact}
repo=repo.bodar.com
dir=lib/
jar=${dir}${artifact}.jar
pack=${dir}${artifact}.pack.gz
url=http://${repo}/${group}/${artifact}/${version}/${artifact}-${version}
remote_file=${url}.pack.gz
remote_sh=${url}.sh

type -t setjava > /dev/null && setjava -q ${JAVA_VERSION} || if [ -n "${JAVA_HOME}" ]; then PATH=${JAVA_HOME}/bin:${PATH}; fi

if [ "$1" = "update" ]; then
rm -f ${jar} ${pack}
fi

if [ ! -f ${jar} ]; then
mkdir -p ${dir}
wget -O ${pack} ${remote_file} || curl -o ${pack} ${remote_file}
unpack200 ${pack} ${jar}
rm -f ${pack}
#wget -O $0 ${remote_sh} || curl -o $0 ${remote_sh}
fi
exec java -showversion -Dbuild.number=${BUILD_NUMBER} ${JAVA_OPTS} -jar ${jar} $*

0 comments on commit 5c8a1e5

Please sign in to comment.