. Generate the class data shared archive during post-install to speed
up VM load times. See http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html Suggested by: "Ronald Klop" <ronald-freebsd8@klop.yi.org> Approved by: phantom (maintainer)
This commit is contained in:
parent
24aa3e3720
commit
a2fb434833
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141916
4 changed files with 36 additions and 22 deletions
|
@ -102,7 +102,8 @@ MAKE_ENV+= DONT_ENABLE_IPV6="YES"
|
|||
ALL_TARGET= all
|
||||
|
||||
PLIST_FILES= jdk${JDK_VERSION}/jre/.systemPrefs/.system.lock \
|
||||
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile
|
||||
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile \
|
||||
jdk${JDK_VERSION}/jre/lib/${ARCH}/client/classes.jsa
|
||||
PLIST_DIRS= jdk${JDK_VERSION}/jre/.systemPrefs
|
||||
|
||||
.if (${ARCH} == amd64)
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# System preference location
|
||||
PREFS_LOCATION=%%JRE_HOME%%
|
||||
JRE_HOME=%%JRE_HOME%%
|
||||
|
||||
# Set up system preferences during post install
|
||||
# Post-install actions
|
||||
if [ "$2" = "POST-INSTALL" ]; then
|
||||
if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
|
||||
mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
|
||||
# Set up system preferences
|
||||
if [ ! -d "${JRE_HOME}/.systemPrefs" ] ; then
|
||||
mkdir -m 755 "${JRE_HOME}/.systemPrefs"
|
||||
fi
|
||||
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
|
||||
touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
|
||||
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
|
||||
if [ ! -f "${JRE_HOME}/.systemPrefs/.system.lock" ] ; then
|
||||
touch "${JRE_HOME}/.systemPrefs/.system.lock"
|
||||
chmod 644 "${JRE_HOME}/.systemPrefs/.system.lock"
|
||||
fi
|
||||
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
|
||||
touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
|
||||
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
|
||||
if [ ! -f "${JRE_HOME}/.systemPrefs/.systemRootModFile" ] ; then
|
||||
touch "${JRE_HOME}/.systemPrefs/.systemRootModFile"
|
||||
chmod 644 "${JRE_HOME}/.systemPrefs/.systemRootModFile"
|
||||
fi
|
||||
|
||||
# Set up class data sharing
|
||||
if [ -x "${JRE_HOME}/bin/java" ]; then
|
||||
"${JRE_HOME}/bin/java" -Xshare:dump
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -102,7 +102,8 @@ MAKE_ENV+= DONT_ENABLE_IPV6="YES"
|
|||
ALL_TARGET= all
|
||||
|
||||
PLIST_FILES= jdk${JDK_VERSION}/jre/.systemPrefs/.system.lock \
|
||||
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile
|
||||
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile \
|
||||
jdk${JDK_VERSION}/jre/lib/${ARCH}/client/classes.jsa
|
||||
PLIST_DIRS= jdk${JDK_VERSION}/jre/.systemPrefs
|
||||
|
||||
.if (${ARCH} == amd64)
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# System preference location
|
||||
PREFS_LOCATION=%%JRE_HOME%%
|
||||
JRE_HOME=%%JRE_HOME%%
|
||||
|
||||
# Set up system preferences during post install
|
||||
# Post-install actions
|
||||
if [ "$2" = "POST-INSTALL" ]; then
|
||||
if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
|
||||
mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
|
||||
# Set up system preferences
|
||||
if [ ! -d "${JRE_HOME}/.systemPrefs" ] ; then
|
||||
mkdir -m 755 "${JRE_HOME}/.systemPrefs"
|
||||
fi
|
||||
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
|
||||
touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
|
||||
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
|
||||
if [ ! -f "${JRE_HOME}/.systemPrefs/.system.lock" ] ; then
|
||||
touch "${JRE_HOME}/.systemPrefs/.system.lock"
|
||||
chmod 644 "${JRE_HOME}/.systemPrefs/.system.lock"
|
||||
fi
|
||||
if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
|
||||
touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
|
||||
chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
|
||||
if [ ! -f "${JRE_HOME}/.systemPrefs/.systemRootModFile" ] ; then
|
||||
touch "${JRE_HOME}/.systemPrefs/.systemRootModFile"
|
||||
chmod 644 "${JRE_HOME}/.systemPrefs/.systemRootModFile"
|
||||
fi
|
||||
|
||||
# Set up class data sharing
|
||||
if [ -x "${JRE_HOME}/bin/java" ]; then
|
||||
"${JRE_HOME}/bin/java" -Xshare:dump
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue