#!/bin/sh # run the Celtix java2wsdl tool # me=`basename $0` celtix_home=`dirname $0`/.. celtix_jar=$celtix_home/lib/celtix.jar if [ ! -f $celtix_jar ]; then if [ ! -f ${celtix_home}/../../target/srcbuild_env ]; then echo "ERROR: Unable to find celtix.jar in $celtix_home/lib" exit 1 else . ${celtix_home}/../../target/srcbuild_env celtix_jar=${CELTIX_CLASSPATH} fi fi # # add the jdk's tools.jar to the classpath # sun_tool_path="" if [ ! `uname` = 'Darwin' ]; then sun_tool_path=${JAVA_HOME}/lib/tools.jar if [ ! -f $sun_tool_path ]; then echo "ERROR: Set JAVA_HOME to the path where the J2SE 5.0 (JDK5.0) is installed" exit 1 fi fi log_config=$celtix_home/etc/logging.properties celtix_classpath=${celtix_jar}:${CLASSPATH}:${sun_tool_path} $JAVA_HOME/bin/java -cp ${celtix_classpath} -Djava.util.logging.config.file=$log_config org.objectweb.celtix.tools.java2wsdl.JavaToWSDL "$@"