blob: ea979bbbf755e0ee7d73d33a29aa76110ee10ad8 [file] [log] [blame]
#!/bin/sh
#
# Copyright (c) 2002, 2018 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Distribution License v. 1.0, which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#
# Script to run schemagen
#
bin_dir=`dirname $0`
WEBSERVICES_LIB=`cd $bin_dir/../share/lib; pwd`
if [ -n "$JAVA_HOME" ]
then
JAVA=$JAVA_HOME/bin/java
else
JAVA=java
fi
CLASSPATH=$WEBSERVICES_LIB/jaxb-core.jar:$WEBSERVICES_LIB/jaxb-xjc.jar:$WEBSERVICES_LIB/jaxb-jxc.jar:$WEBSERVICES_LIB/jaxb-impl.jar:$JAVA_HOME/lib/tools.jar
exec $JAVA $XJC_OPTS -cp "$CLASSPATH" com.sun.tools.jxc.SchemaGeneratorFacade "$@"