view domake @ 3101:6ccb95c97e6d

IdealGraphVisualizer: Work around a problem with JSplitPane and the NetBeans editor: setDividerLocation() doesn't work when the split pane has not been layouted and painted yet. JSplitPane then initially uses a tiny width for the left editor component, which causes the editor to calculate invalid offsets and constantly throw exceptions, particularly on mouse events. Thus, defer adding the two components and setting the divider's location.
author Peter Hofer <peter.hofer@jku.at>
date Thu, 30 Jun 2011 12:17:27 +0200
parents c4922e69711e
children 44da449fc29c
line wrap: on
line source

#!/bin/bash

test -n "$JDK7" || { echo "Need to set JDK7 environment variable to the base of a JDK 1.7"; exit 1; }
test -n "$JDK7G" || { echo "Need to set JDK7G environment variable to the base of a JDK 1.7"; exit 1; }

# Resolve location of this script
me="${BASH_SOURCE[0]}"
while [ -h "$me" ]; do
    me=`readlink -e "$me"`
done
graal_home=$(cd `dirname $me`; pwd)

grep '-client KNOWN' $JDK7/jre/lib/amd64/jvm.cfg >/dev/null
if [ $? -ne 0 ] ; then
    echo "The setting for -client in $JDK7/jre/lib/amd64/jvm.cfg must be:"
    echo
    echo "  -client KNOWN"
    echo
    exit 1
fi

grep '-client KNOWN' $JDK7G/jre/lib/amd64/jvm.cfg >/dev/null
if [ $? -ne 0 ] ; then
    echo "The setting for -client in $JDK7G/jre/lib/amd64/jvm.cfg must be:"
    echo
    echo "  -client KNOWN"
    echo
    exit 1
fi

java_link="$graal_home/graal/hotspot/java"
if [ ! -e $java_link ]; then
    echo "Creating link: $java_link -> $JDK7/jre/bin/java"
    ln -s $JDK7/jre/bin/java $java_link
fi

client_dir=$JDK7/jre/lib/amd64/client
if [ ! -e $client_dir ]; then
    echo "Creating client compiler dir: $client_dir"
    mkdir $client_dir
fi

client_dir=$JDK7G/jre/lib/amd64/client
if [ ! -e $client_dir ]; then
    echo "Creating debug client compiler dir: $client_dir"
    mkdir $client_dir
fi

pushd $graal_home/make

# the piping magic runs stderr through grep and removes the complaints about Xusage.txt files
ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7G INSTALL=y make jvmg1 3>&1 1>&2 2>&3 | grep -v Xusage[.]txt
ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7 INSTALL=y make product1 3>&1 1>&2 2>&3 | grep -v Xusage[.]txt

popd