#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common Development
# and Distribution License("CDDL") (collectively, the "License"). You
# may not use this file except in compliance with the License. You can
# obtain a copy of the License at
# or packager/legal/LICENSE.txt. See the License for the specific
# language governing permissions and limitations under the License.
#
# When distributing the software, include this License Header Notice in each
# file and include the License file at packager/legal/LICENSE.txt.
#
# GPL Classpath Exception:
# Oracle designates this particular file as subject to the "Classpath"
# exception as provided by Oracle in the GPL Version 2 section of the License
# file that accompanied this code.
#
# Modifications:
# If applicable, add the following below the License Header, with the fields
# enclosed by brackets [] replaced by your own identifying information:
# "Portions Copyright [year] [name of copyright owner]"
#
# Contributor(s):
# If you wish your version of this file to be governed by only the CDDL or
# only the GPL Version 2, indicate your decision by adding "[Contributor]
# elects to include this software in this distribution under the [CDDL or GPL
# Version 2] license." If you don't indicate a single choice of license, a
# recipient has the option to distribute your version of this file under
# either the CDDL, the GPL Version 2 or to extend the choice of license to
# its licensees as provided above. However, if you add GPL Version 2 code
# and therefore, elected the GPL Version 2 license, then the option applies
# only if the new code is made subject to such option by the copyright
# holder.
#
givenDirPath=`dirname $1`
givenFilePath=`basename $1`
if [ -f $givenDirPath/$givenFilePath ]
then
else
echo "The silent installation file provided is not accessible. Please rerun this program with an appropriate statefile."
exit 102
fi
}
givenDirPath=`dirname $1`
givenFilePath=`basename $1`
if [ ! -f $givenDirPath/$givenFilePath ]
then
else
echo "The answer file provided already exists. Please rerun this program by providing a non-existing answer file to be created."
exit 104
fi
}
# Search path for locating java
# Convert colons to spaces
for j in $java_locs; do
# Check if version is sufficient
major=0
minor=0
fi
# We want 1.6 or newer
return
fi
return
fi
done
echo ""
}
# Search path for locating jar
# Convert colons to spaces
return
fi
done
echo ""
}
ARGS=""
export ARGS
_POSIX2_VERSION=199209
export _POSIX2_VERSION
#validate JAVA_HOME, leave full validation to OI.
if [ -z "$my_java" ]; then
echo
echo "Could not locate a suitable Java runtime."
echo "Please ensure that you have Java 6 or newer installed on your system"
echo "and accessible in your PATH or by setting JAVA_HOME"
exit 105
fi
export JAVA_HOME
if [ -z "$my_jar" ]; then
echo
echo "Could not locate a suitable jar utility."
echo "Please ensure that you have Java 6 or newer installed on your system"
echo "and accessible in your PATH or by setting JAVA_HOME"
exit 105
fi
while [ $# -gt 0 ]
do
arg="$1"
if [ "${arg}" != "-s" ]
then
ARGS="${ARGS} ${arg} "
fi
shift
if [ -z $1 ]
then
echo "Please provide a valid response file along with -n option."
exit 103
else
fi
;;
-a)
shift
if [ -z $1 ]
then
echo "Please provide a valid answer file along with -a option."
exit 101
else
fi
;;
-R)
echo "Invalid Argument, -R option is not applicable to this release."
exit 101
;;
-r)
echo "Invalid Argument, -r option is not applicable to this release."
exit 101
;;
-s)
;;
esac
shift
done
tmp=`mktemp -d -t install.XXXXXX`
if [ $? -ne 0 ]; then
echo "Unable to create temporary directory, exiting..."
exit 1
fi
echo "Extracting archive, please wait..."
cd $tmp
echo "InstallHome.directory.INSTALL_HOME=$HOME/glassfish3" > install.properties
exit $?