Advertisement
aadddrr

Untitled

Jun 8th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. # Licensed to the Apache Software Foundation (ASF) under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. The ASF licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing,
  14. # software distributed under the License is distributed on an
  15. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. # KIND, either express or implied. See the License for the
  17. # specific language governing permissions and limitations
  18. # under the License.
  19.  
  20. # ----------------------------------------------------------------------------
  21. #    Axis2 Script
  22. #
  23. # Pre-requisites
  24. #   - setenv.sh must have been called.
  25. #
  26. #   AXIS2_HOME   Home of Axis2 installation. If not set I will  try
  27. #                   to figure it out.
  28. #
  29. #   JAVA_HOME       Must point at your Java Development Kit installation.
  30. #
  31. # -----------------------------------------------------------------------------
  32.  
  33. # Get the context and from that find the location of setenv.sh
  34. dir=`dirname "$0"`
  35. . "${dir}"/setenv.sh
  36.  
  37. #add any user given classpath's
  38. USER_COMMANDS=""
  39. prearg=""
  40. for arg in "$@"
  41. do
  42.    if [ "$arg" != -classpath ] && [ "$arg" != -cp ] && [ "$prearg" != -classpath ] && [ "$prearg" != -cp  ]
  43.    then
  44.       USER_COMMANDS="$USER_COMMANDS ""$arg"
  45.    fi
  46.  
  47.    if [ "$prearg"=-classpath ] || [ "$prearg"=-cp  ]
  48.    then
  49.       AXIS2_CLASSPATH="$arg":"$AXIS2_CLASSPATH"
  50.    fi
  51.    prearg="$arg"
  52. done
  53.  
  54.  
  55. "$JAVA_HOME"/bin/java -classpath "$AXIS2_CLASSPATH" \
  56. -Daxis2.xml="$AXIS2_HOME/conf/axis2.xml" -Daxis2.repo="$AXIS2_HOME/repository"  $USER_COMMANDS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement