You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <de...@tuscany.apache.org> on 2009/03/11 21:12:50 UTC

[jira] Resolved: (TUSCANY-2915) tuscany.sh for tuscany-2.0-M1

     [ https://issues.apache.org/jira/browse/TUSCANY-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TUSCANY-2915.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:  Java-SCA-2.0-M2

Patch applied under svn revision #752602. Thanks Well Yao.

> tuscany.sh for tuscany-2.0-M1
> -----------------------------
>
>                 Key: TUSCANY-2915
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2915
>             Project: Tuscany
>          Issue Type: Improvement
>    Affects Versions: Java-SCA-2.0-M1
>         Environment: linux
>            Reporter: Well Yao
>             Fix For:  Java-SCA-2.0-M2
>
>
> There is only a tuscany.bat file for windows in the tuscany-2.0-M1. I create a tuscany.sh for linux, and I hope it can help the peopel using linux.
> tuscany.sh
> #!/bin/bash
> # copied from tomcat catalina.sh
> # resolve links - $0 may be a softlink
> PRG="$0"
> while [ -h "$PRG" ]; do
>   ls=`ls -ld "$PRG"`
>   link=`expr "$ls" : '.*-> \(.*\)$'`
>   if expr "$link" : '/.*' > /dev/null; then
>     PRG="$link"
>   else
>     PRG=`dirname "$PRG"`/"$link"
>   fi
> done
> # Get standard environment variables
> PRGDIR=`dirname "$PRG"`
> # Only set CATALINA_HOME if not already set
> [ -z "$TUSCANY_HOME" ] && TUSCANY_HOME=`cd "$PRGDIR/.." ; pwd`
> if [ "$1" = "/?" ] ; then
>     echo "Apache Tuscany SCA runtime launcher"
>     echo "TUSCANY [debug] contributions"
>     echo "    debug          enable Java remote debugging"
>     echo "    contributions  list of SCA contribution file names seperated by spaces. All"
>     echo "                   deployable composites found in the contributions will be run."
>     exit 1
> fi
> _XDEBUG=""
> if [ "$1" = "debug" ] ; then
>    _XDEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"
>    shift
> fi
> java $_XDEBUG -jar $TUSCANY_HOME/bin/launcher.jar "$@"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.