1 --- jaxb-ri-2.2.11/bundles/ri/src/main/resources/bin/xjc.sh.1 2017-02-11 11:21:01.295994888 +0300
2 +++ jaxb-ri-2.2.11/bundles/ri/src/main/resources/bin/xjc.sh 2017-02-11 11:23:09.715644043 +0300
7 - # search the installation directory
10 - progname=`basename $0`
15 - while [ -h "$PRG" ] ; do
17 - link=`expr "$ls" : '.*-> \(.*\)$'`
18 - if expr "$link" : '.*/.*' > /dev/null; then
21 - PRG="`dirname $PRG`/$link"
25 - JAXB_HOME=`dirname "$PRG"`/..
27 - # make it fully qualified
29 - JAXB_HOME=`cd "$JAXB_HOME" && pwd`
32 + JAXB_HOME=/usr/share/lib/java
35 -[ `expr \`uname\` : 'CYGWIN'` -eq 6 ] &&
37 - JAXB_HOME=`cygpath -w "$JAXB_HOME"`
40 if [ -n "$JAVA_HOME" ]
42 JAVA="$JAVA_HOME/bin/java"
47 -exec "$JAVA" $XJC_OPTS -jar "$JAXB_HOME/lib/jaxb-xjc.jar" "$@"
48 +exec "$JAVA" $XJC_OPTS -jar "$JAXB_HOME/jaxb-xjc.jar" "$@"
49 --- jaxb-ri-2.2.11/bundles/ri/src/main/resources/bin/schemagen.sh.1 2017-02-11 11:21:15.798391334 +0300
50 +++ jaxb-ri-2.2.11/bundles/ri/src/main/resources/bin/schemagen.sh 2017-02-11 11:29:30.749818099 +0300
53 if [ -z "$JAXB_HOME" ]
55 - # search the installation directory
58 - progname=`basename $0`
63 - while [ -h "$PRG" ] ; do
65 - link=`expr "$ls" : '.*-> \(.*\)$'`
66 - if expr "$link" : '.*/.*' > /dev/null; then
69 - PRG="`dirname $PRG`/$link"
73 - JAXB_HOME=`dirname "$PRG"`/..
75 - # make it fully qualified
77 - JAXB_HOME=`cd "$JAXB_HOME" && pwd`
80 + JAXB_HOME=/usr/share/lib/java
83 if [ -n "$CLASSPATH" ] ; then
86 # add the api jar file
87 if [ -z "$LOCALCLASSPATH" ] ; then
88 - LOCALCLASSPATH="$JAXB_HOME"/lib/jaxb-api.jar:"$JAXB_HOME"/lib/jaxb-core.jar:"$JAXB_HOME"/lib/jaxb-xjc.jar:"$JAXB_HOME"/lib/jaxb-jxc.jar:"$JAXB_HOME"/lib/jaxb-impl.jar
89 + LOCALCLASSPATH="$JAXB_HOME"/jaxb-api.jar:"$JAXB_HOME"/jaxb-core.jar:"$JAXB_HOME"/jaxb-xjc.jar:"$JAXB_HOME"/jaxb-jxc.jar:"$JAXB_HOME"/jaxb-impl.jar
91 - LOCALCLASSPATH="$JAXB_HOME"/lib/jaxb-api.jar:"$JAXB_HOME"/lib/jaxb-core.jar:"$JAXB_HOME"/lib/jaxb-xjc.jar:"$JAXB_HOME"/lib/jaxb-jxc.jar:"$JAXB_HOME"/lib/jaxb-impl.jar:"$LOCALCLASSPATH"
92 + LOCALCLASSPATH="$JAXB_HOME"/jaxb-api.jar:"$JAXB_HOME"/jaxb-core.jar:"$JAXB_HOME"/jaxb-xjc.jar:"$JAXB_HOME"/jaxb-jxc.jar:"$JAXB_HOME"/jaxb-impl.jar:"$LOCALCLASSPATH"
95 +if [ -z "$JAVA_HOME" ]; then
96 + JAVA_HOME="/usr/java"
99 -if [ -n "$JAVA_HOME" ]
101 +if [ -n "$JAVA_HOME" ]; then
102 JAVA="$JAVA_HOME"/bin/java
103 LOCALCLASSPATH="$JAVA_HOME"/lib/tools.jar:"$LOCALCLASSPATH"
106 - JAVACMD=`which $JAVA`
107 - BINDIR=`dirname $JAVACMD`
108 - LOCALCLASSPATH="$BINDIR"/../lib/tools.jar:"$LOCALCLASSPATH"
110 -[ `expr \`uname\` : 'CYGWIN'` -eq 6 ] &&
112 - LOCALCLASSPATH=`cygpath -w -p ${LOCALCLASSPATH}`
115 -if [ `expr \`uname\` : 'CYGWIN'` -eq 6 ]
117 - JAXB_HOME="`cygpath -w "$JAXB_HOME"`"
121 exec "$JAVA" $SCHEMAGEN_OPTS -cp "$LOCALCLASSPATH" com.sun.tools.jxc.SchemaGeneratorFacade "$@"