You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/04/24 06:54:13 UTC
svn commit: r531721 -
/webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh
Author: sandakith
Date: Mon Apr 23 21:54:12 2007
New Revision: 531721
URL: http://svn.apache.org/viewvc?view=rev&rev=531721
Log:
fix for AXIS2-1537
Axis2.sh cannot handle externally given classpath
now that user can do -> sh axis2.sh -cp <user_path> Class
Made some changes to the patch file attached
Modified:
webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh
Modified: webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh?view=diff&rev=531721&r1=531720&r2=531721
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh (original)
+++ webservices/axis2/branches/java/1_2/modules/tool/script/axis2.sh Mon Apr 23 21:54:12 2007
@@ -30,6 +30,23 @@
# Get the context and from that find the location of setenv.sh
. `dirname $0`/setenv.sh
+#add any user given classpath's
+USER_COMMANDS=""
+prearg=""
+for arg in "$@"
+do
+ if [ $arg != -classpath ] && [ $arg != -cp ] && [ $prearg != -classpath ] && [ $prearg != -cp ]
+ then
+ USER_COMMANDS="$USER_COMMANDS ""$arg"
+ fi
+
+ if [ $prearg=-classpath ] || [ $prearg=-cp ]
+ then
+ AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
+ fi
+ prearg=$arg
+done
+
$JAVA_HOME/bin/java -classpath "$AXIS2_CLASSPATH" \
--Daxis2.xml="$AXIS2_HOME/conf/axis2.xml" -Daxis2.repo="$AXIS2_HOME/repository" $*
+-Daxis2.xml="$AXIS2_HOME/conf/axis2.xml" -Daxis2.repo="$AXIS2_HOME/repository" $USER_COMMANDS
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org