Revision: 16009
Author: [email protected]
Date: Tue Dec 21 23:25:06 2010
Log: Copies the shell files to JBoss
http://code.google.com/p/mobicents/source/detail?r=16009

Added:
 /trunk/protocols/ss7/management/shell/src/main/config/ss7-run.bat
 /trunk/protocols/ss7/management/shell/src/main/config/ss7-run.sh
Deleted:
 /trunk/protocols/ss7/management/shell/src/main/config/run.bat
 /trunk/protocols/ss7/management/shell/src/main/config/run.sh
Modified:
 /trunk/protocols/ss7/management/shell/pom.xml

=======================================
--- /dev/null
+++ /trunk/protocols/ss7/management/shell/src/main/config/ss7-run.bat Tue Dec 21 23:25:06 2010
@@ -0,0 +1,145 @@
+...@echo off
+rem -------------------------------------------------------------------------
+rem Mobicents SS7 CLI Bootstrap Script for Win32
+rem -------------------------------------------------------------------------
+
+rem $Id: run.bat,v 1.5 2010/12/13 10:15:40 abhayani Exp $
+
+...@if not "%ECHO%" == ""  echo %ECHO%
+...@if "%OS%" == "Windows_NT"  setlocal
+
+set DIRNAME=.\
+if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
+set PROGNAME=run.bat
+if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
+
+pushd %DIRNAME%..
+set SHELL_HOME=%CD%
+echo ========
+echo %SHELL_HOME%
+
+popd
+
+REM Add bin/native to the PATH if present
+if exist "%SHELL_HOME%\native" set PATH=%SHELL_HOME%\native;%PATH%
+if exist "%SHELL_HOME%\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%"
+
+REM Run section  - here we define node and default ip
+set IP=127.0.0.1
+
+rem Read all command line arguments
+
+REM
+REM The %ARGS% env variable commented out in favor of using %* to include
+REM all args in java command line. See bug #840239. [jpl]
+REM
+REM set ARGS=
+REM :loop
+REM if [%1] == [] goto endloop
+REM         set ARGS=%ARGS% %1
+REM         shift
+REM         goto loop
+REM :endloop
+
+
+set ARGS=""
+
+
+:loop
+ if [%1] == [] goto endloop
+         set ARGS=%ARGS% %1
+         shift
+         goto loop
+ :endloop
+
+
+rem Find run.jar, or we can't continue
+
+set RUNJAR=%SHELL_HOME%\bin\mobicents-ss7-shell.jar
+if exist "%RUNJAR%" goto FOUND_RUN_JAR
+echo Could not locate %RUNJAR%. Please check that you are in the
+echo bin directory when running this script.
+goto END
+
+:FOUND_RUN_JAR
+
+if not "%JAVA_HOME%" == "" goto ADD_TOOLS
+
+set JAVA=java
+
+echo JAVA_HOME is not set.  Unexpected results may occur.
+echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
+goto SKIP_TOOLS
+
+:ADD_TOOLS
+
+set JAVA=%JAVA_HOME%\bin\java
+
+rem A full JDK with toos.jar is not required anymore since jboss web packages
+rem the eclipse jdt compiler and javassist has its own internal compiler.
+if not exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
+
+rem If exists, point to the JDK javac compiler in case the user wants to
+rem later override the eclipse jdt compiler for compiling JSP pages.
+set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
+
+:SKIP_TOOLS
+
+rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
+rem result in including the local directory in the classpath, which makes
+rem error tracking harder.
+if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR%
+if "%SHELL_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR%
+if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%SHELL_CLASSPATH%;%RUNJAR%
+
+set SHELL_CLASSPATH=%RUN_CLASSPATH%
+
+rem Setup JBoss specific properties
+set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
+
+rem Add -server to the JVM options, if supported
+"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
+if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
+
+rem JVM memory allocation pool parameters. Modify as appropriate.
+set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
+
+rem profiler
+rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:C:\Users\kulikov\.netbeans\6.1\lib\deployed\jdk15\windows\profilerinterface.dll=C:\Users\kulikov\.netbeans\6.1\lib,5140 +rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:C:\Users\kulikov\.netbeans\6.1\lib\deployed\jdk16\windows\profilerinterface.dll=C:\Users\kulikov\.netbeans\6.1\lib,5140
+
+rem With Sun JVMs reduce the RMI GCs to once per hour
+set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
+
+rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. +rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
+
+rem Setup the java endorsed dirs
+set SHELL_ENDORSED_DIRS=%SHELL_HOME%\lib
+
+
+echo ===============================================================================
+echo.
+echo   Mobicents SS7 Management Shell Bootstrap Environment
+echo.
+echo   SHELL_HOME: %SHELL_HOME%
+echo.
+echo   JAVA: %JAVA%
+echo.
+echo   JAVA_OPTS: %JAVA_OPTS%
+echo.
+echo   CLASSPATH: %SHELL_CLASSPATH%
+echo
+echo   SHELL_ENDORSED_DIRS: %SHELL_ENDORSED_DIRS%
+echo.
+echo ===============================================================================
+echo.
+
+:RESTART
+"%JAVA%" %JAVA_OPTS% -Djava.ext.dirs="%SHELL_ENDORSED_DIRS%" -classpath "%SHELL_CLASSPATH%" org.mobicents.protocols.ss7.management.shell.Shell %*
+rem if ERRORLEVEL 10 goto RESTART
+
+:END
+if "%NOPAUSE%" == "" pause
+
+:END_NO_PAUSE
=======================================
--- /dev/null
+++ /trunk/protocols/ss7/management/shell/src/main/config/ss7-run.sh Tue Dec 21 23:25:06 2010
@@ -0,0 +1,171 @@
+#!/bin/sh
+### ====================================================================== ### +## ##
+##  Mobicents SS7 CLI Bootstrap Script                                 ##
+## ## +### ====================================================================== ###
+
+### $Id: run.sh [email protected] $ ###
+
+DIRNAME=`dirname $0`
+PROGNAME=`basename $0`
+GREP="grep"
+
+# Use the maximum available, or set MAX_FD != -1 to use that
+MAX_FD="maximum"
+
+#
+# Helper to complain.
+#
+warn() {
+    echo "${PROGNAME}: $*"
+}
+
+#
+# Helper to puke.
+#
+die() {
+    warn $*
+    exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false;
+darwin=false;
+linux=false;
+case "`uname`" in
+    CYGWIN*)
+        cygwin=true
+        ;;
+
+    Darwin*)
+        darwin=true
+        ;;
+
+    Linux)
+        linux=true
+        ;;
+esac
+
+
+# Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower
+if [ "$linux" = "true" ]; then
+   JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+    [ -n "$SHELL_HOME" ] &&
+        SHELL_HOME=`cygpath --unix "$SHELL_HOME"`
+    [ -n "$JAVA_HOME" ] &&
+        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+    [ -n "$JAVAC_JAR" ] &&
+        JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"`
+fi
+
+# Setup SHELL_HOME
+if [ "x$SHELL_HOME" = "x" ]; then
+    # get the full path (without any relative bits)
+    SHELL_HOME=`cd $DIRNAME/..; pwd`
+fi
+export SHELL_HOME
+
+# Increase the maximum file descriptors if we can
+if [ "$cygwin" = "false" ]; then
+    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ $? -eq 0 ]; then
+       if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then
+           # use the system max
+           MAX_FD="$MAX_FD_LIMIT"
+       fi
+
+       ulimit -n $MAX_FD
+       if [ $? -ne 0 ]; then
+           warn "Could not set maximum file descriptor limit: $MAX_FD"
+       fi
+    else
+       warn "Could not query system maximum file descriptor limit: 
$MAX_FD_LIMIT"
+    fi
+fi
+
+# Setup the JVM
+if [ "x$JAVA" = "x" ]; then
+    if [ "x$JAVA_HOME" != "x" ]; then
+       JAVA="$JAVA_HOME/bin/java"
+    else
+       JAVA="java"
+    fi
+fi
+
+# Setup the classpath
+runjar="$SHELL_HOME/bin/mobicents-ss7-shell.jar"
+if [ ! -f "$runjar" ]; then
+    die "Missing required file: $runjar"
+fi
+
+SHELL_BOOT_CLASSPATH="$runjar"
+
+if [ "x$SHELL_CLASSPATH" = "x" ]; then
+    SHELL_CLASSPATH="$SHELL_BOOT_CLASSPATH"
+else
+    SHELL_CLASSPATH="$SHELL_CLASSPATH:$SHELL_BOOT_CLASSPATH"
+fi
+
+
+# If -server not set in JAVA_OPTS, set it, if supported
+SERVER_SET=`echo $JAVA_OPTS | $GREP "\-server"`
+if [ "x$SERVER_SET" = "x" ]; then
+
+    # Check for SUN(tm) JVM w/ HotSpot support
+    if [ "x$HAS_HOTSPOT" = "x" ]; then
+       HAS_HOTSPOT=`"$JAVA" -version 2>&1 | $GREP -i HotSpot`
+    fi
+
+    # Enable -server if we have Hotspot, unless we can't
+    if [ "x$HAS_HOTSPOT" != "x" ]; then
+       # MacOS does not support -server flag
+       if [ "$darwin" != "true" ]; then
+           JAVA_OPTS="-server $JAVA_OPTS"
+       fi
+     fi
+fi
+
+# Setup MMS specific properties
+JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
+JAVA_OPTS="$JAVA_OPTS -Xms64m -Xmx64m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" +#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
+# Setup the java endorsed dirs
+SHELL_ENDORSED_DIRS="$SHELL_HOME/lib"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+    SHELL_HOME=`cygpath --path --windows "$SHELL_HOME"`
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+    SHELL_CLASSPATH=`cygpath --path --windows "$SHELL_CLASSPATH"`
+    SHELL_ENDORSED_DIRS=`cygpath --path --windows "$SHELL_ENDORSED_DIRS"`
+fi
+
+# Display our environment
+echo 
"========================================================================="
+echo ""
+echo "  Mobicents SS7 Management Shell Bootstrap Environment"
+echo ""
+echo "  SHELL_HOME: $SHELL_HOME"
+echo ""
+echo "  JAVA: $JAVA"
+echo ""
+echo "  JAVA_OPTS: $JAVA_OPTS"
+echo ""
+echo "  CLASSPATH: $SHELL_CLASSPATH"
+echo ""
+echo 
"========================================================================="
+echo ""
+
+      "$JAVA" $JAVA_OPTS \
+         -Djava.ext.dirs="$SHELL_ENDORSED_DIRS" \
+         -Dmbrola.base="$SHELL_HOME/mbrola" \
+         -classpath "$SHELL_CLASSPATH" \
+         org.mobicents.protocols.ss7.management.shell.Shell "$@"
+      SHELL_STATUS=$?
+
+#java -Djava.ext.dirs=`pwd`/lib -Dmms.home=. -cp .:mms-standalone-2.0.0.BETA1-SNAPSHOT.jar org.mobicents.media.server.bootstrap.jmx.JMXMain
=======================================
--- /trunk/protocols/ss7/management/shell/src/main/config/run.bat Sun Dec 12 22:46:45 2010
+++ /dev/null
@@ -1,145 +0,0 @@
-...@echo off
-rem -------------------------------------------------------------------------
-rem Mobicents SS7 CLI Bootstrap Script for Win32
-rem -------------------------------------------------------------------------
-
-rem $Id: run.bat,v 1.5 2010/12/13 10:15:40 abhayani Exp $
-
-...@if not "%ECHO%" == ""  echo %ECHO%
-...@if "%OS%" == "Windows_NT"  setlocal
-
-set DIRNAME=.\
-if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
-set PROGNAME=run.bat
-if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
-
-pushd %DIRNAME%..
-set SHELL_HOME=%CD%
-echo ========
-echo %SHELL_HOME%
-
-popd
-
-REM Add bin/native to the PATH if present
-if exist "%SHELL_HOME%\native" set PATH=%SHELL_HOME%\native;%PATH%
-if exist "%SHELL_HOME%\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%"
-
-REM Run section  - here we define node and default ip
-set IP=127.0.0.1
-
-rem Read all command line arguments
-
-REM
-REM The %ARGS% env variable commented out in favor of using %* to include
-REM all args in java command line. See bug #840239. [jpl]
-REM
-REM set ARGS=
-REM :loop
-REM if [%1] == [] goto endloop
-REM         set ARGS=%ARGS% %1
-REM         shift
-REM         goto loop
-REM :endloop
-
-
-set ARGS=""
-
-
-:loop
- if [%1] == [] goto endloop
-         set ARGS=%ARGS% %1
-         shift
-         goto loop
- :endloop
-
-
-rem Find run.jar, or we can't continue
-
-set RUNJAR=%SHELL_HOME%\bin\ss7-shell.jar
-if exist "%RUNJAR%" goto FOUND_RUN_JAR
-echo Could not locate %RUNJAR%. Please check that you are in the
-echo bin directory when running this script.
-goto END
-
-:FOUND_RUN_JAR
-
-if not "%JAVA_HOME%" == "" goto ADD_TOOLS
-
-set JAVA=java
-
-echo JAVA_HOME is not set.  Unexpected results may occur.
-echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
-goto SKIP_TOOLS
-
-:ADD_TOOLS
-
-set JAVA=%JAVA_HOME%\bin\java
-
-rem A full JDK with toos.jar is not required anymore since jboss web packages
-rem the eclipse jdt compiler and javassist has its own internal compiler.
-if not exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS
-
-rem If exists, point to the JDK javac compiler in case the user wants to
-rem later override the eclipse jdt compiler for compiling JSP pages.
-set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
-
-:SKIP_TOOLS
-
-rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
-rem result in including the local directory in the classpath, which makes
-rem error tracking harder.
-if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR%
-if "%SHELL_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR%
-if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%SHELL_CLASSPATH%;%RUNJAR%
-
-set SHELL_CLASSPATH=%RUN_CLASSPATH%
-
-rem Setup JBoss specific properties
-set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME%
-
-rem Add -server to the JVM options, if supported
-"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
-if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
-
-rem JVM memory allocation pool parameters. Modify as appropriate.
-set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
-
-rem profiler
-rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:C:\Users\kulikov\.netbeans\6.1\lib\deployed\jdk15\windows\profilerinterface.dll=C:\Users\kulikov\.netbeans\6.1\lib,5140 -rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:C:\Users\kulikov\.netbeans\6.1\lib\deployed\jdk16\windows\profilerinterface.dll=C:\Users\kulikov\.netbeans\6.1\lib,5140
-
-rem With Sun JVMs reduce the RMI GCs to once per hour
-set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-
-rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. -rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
-
-rem Setup the java endorsed dirs
-set SHELL_ENDORSED_DIRS=%SHELL_HOME%\lib
-
-
-echo ===============================================================================
-echo.
-echo   Mobicents SS7 Management Shell Bootstrap Environment
-echo.
-echo   SHELL_HOME: %SHELL_HOME%
-echo.
-echo   JAVA: %JAVA%
-echo.
-echo   JAVA_OPTS: %JAVA_OPTS%
-echo.
-echo   CLASSPATH: %SHELL_CLASSPATH%
-echo
-echo   SHELL_ENDORSED_DIRS: %SHELL_ENDORSED_DIRS%
-echo.
-echo ===============================================================================
-echo.
-
-:RESTART
-"%JAVA%" %JAVA_OPTS% -Djava.ext.dirs="%SHELL_ENDORSED_DIRS%" -classpath "%SHELL_CLASSPATH%" org.mobicents.protocols.ss7.management.shell.Shell %*
-rem if ERRORLEVEL 10 goto RESTART
-
-:END
-if "%NOPAUSE%" == "" pause
-
-:END_NO_PAUSE
=======================================
--- /trunk/protocols/ss7/management/shell/src/main/config/run.sh Sun Dec 12 22:46:45 2010
+++ /dev/null
@@ -1,171 +0,0 @@
-#!/bin/sh
-### ====================================================================== ### -## ##
-##  Mobicents SS7 CLI Bootstrap Script                                 ##
-## ## -### ====================================================================== ###
-
-### $Id: run.sh [email protected] $ ###
-
-DIRNAME=`dirname $0`
-PROGNAME=`basename $0`
-GREP="grep"
-
-# Use the maximum available, or set MAX_FD != -1 to use that
-MAX_FD="maximum"
-
-#
-# Helper to complain.
-#
-warn() {
-    echo "${PROGNAME}: $*"
-}
-
-#
-# Helper to puke.
-#
-die() {
-    warn $*
-    exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false;
-darwin=false;
-linux=false;
-case "`uname`" in
-    CYGWIN*)
-        cygwin=true
-        ;;
-
-    Darwin*)
-        darwin=true
-        ;;
-
-    Linux)
-        linux=true
-        ;;
-esac
-
-
-# Force IPv4 on Linux systems since IPv6 doesn't work correctly with jdk5 and lower
-if [ "$linux" = "true" ]; then
-   JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
-    [ -n "$SHELL_HOME" ] &&
-        SHELL_HOME=`cygpath --unix "$SHELL_HOME"`
-    [ -n "$JAVA_HOME" ] &&
-        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-    [ -n "$JAVAC_JAR" ] &&
-        JAVAC_JAR=`cygpath --unix "$JAVAC_JAR"`
-fi
-
-# Setup SHELL_HOME
-if [ "x$SHELL_HOME" = "x" ]; then
-    # get the full path (without any relative bits)
-    SHELL_HOME=`cd $DIRNAME/..; pwd`
-fi
-export SHELL_HOME
-
-# Increase the maximum file descriptors if we can
-if [ "$cygwin" = "false" ]; then
-    MAX_FD_LIMIT=`ulimit -H -n`
-    if [ $? -eq 0 ]; then
-       if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ]; then
-           # use the system max
-           MAX_FD="$MAX_FD_LIMIT"
-       fi
-
-       ulimit -n $MAX_FD
-       if [ $? -ne 0 ]; then
-           warn "Could not set maximum file descriptor limit: $MAX_FD"
-       fi
-    else
-       warn "Could not query system maximum file descriptor limit: 
$MAX_FD_LIMIT"
-    fi
-fi
-
-# Setup the JVM
-if [ "x$JAVA" = "x" ]; then
-    if [ "x$JAVA_HOME" != "x" ]; then
-       JAVA="$JAVA_HOME/bin/java"
-    else
-       JAVA="java"
-    fi
-fi
-
-# Setup the classpath
-runjar="$SHELL_HOME/bin/ss7-shell.jar"
-if [ ! -f "$runjar" ]; then
-    die "Missing required file: $runjar"
-fi
-
-SHELL_BOOT_CLASSPATH="$runjar"
-
-if [ "x$SHELL_CLASSPATH" = "x" ]; then
-    SHELL_CLASSPATH="$SHELL_BOOT_CLASSPATH"
-else
-    SHELL_CLASSPATH="$SHELL_CLASSPATH:$SHELL_BOOT_CLASSPATH"
-fi
-
-
-# If -server not set in JAVA_OPTS, set it, if supported
-SERVER_SET=`echo $JAVA_OPTS | $GREP "\-server"`
-if [ "x$SERVER_SET" = "x" ]; then
-
-    # Check for SUN(tm) JVM w/ HotSpot support
-    if [ "x$HAS_HOTSPOT" = "x" ]; then
-       HAS_HOTSPOT=`"$JAVA" -version 2>&1 | $GREP -i HotSpot`
-    fi
-
-    # Enable -server if we have Hotspot, unless we can't
-    if [ "x$HAS_HOTSPOT" != "x" ]; then
-       # MacOS does not support -server flag
-       if [ "$darwin" != "true" ]; then
-           JAVA_OPTS="-server $JAVA_OPTS"
-       fi
-     fi
-fi
-
-# Setup MMS specific properties
-JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
-JAVA_OPTS="$JAVA_OPTS -Xms64m -Xmx64m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" -#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
-# Setup the java endorsed dirs
-SHELL_ENDORSED_DIRS="$SHELL_HOME/lib"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
-    SHELL_HOME=`cygpath --path --windows "$SHELL_HOME"`
-    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-    SHELL_CLASSPATH=`cygpath --path --windows "$SHELL_CLASSPATH"`
-    SHELL_ENDORSED_DIRS=`cygpath --path --windows "$SHELL_ENDORSED_DIRS"`
-fi
-
-# Display our environment
-echo 
"========================================================================="
-echo ""
-echo "  Mobicents SS7 Management Shell Bootstrap Environment"
-echo ""
-echo "  SHELL_HOME: $SHELL_HOME"
-echo ""
-echo "  JAVA: $JAVA"
-echo ""
-echo "  JAVA_OPTS: $JAVA_OPTS"
-echo ""
-echo "  CLASSPATH: $SHELL_CLASSPATH"
-echo ""
-echo 
"========================================================================="
-echo ""
-
-      "$JAVA" $JAVA_OPTS \
-         -Djava.ext.dirs="$SHELL_ENDORSED_DIRS" \
-         -Dmbrola.base="$SHELL_HOME/mbrola" \
-         -classpath "$SHELL_CLASSPATH" \
-         org.mobicents.protocols.ss7.management.shell.Shell "$@"
-      SHELL_STATUS=$?
-
-#java -Djava.ext.dirs=`pwd`/lib -Dmms.home=. -cp .:mms-standalone-2.0.0.BETA1-SNAPSHOT.jar org.mobicents.media.server.bootstrap.jmx.JMXMain
=======================================
--- /trunk/protocols/ss7/management/shell/pom.xml       Sun Dec 12 22:46:45 2010
+++ /trunk/protocols/ss7/management/shell/pom.xml       Tue Dec 21 23:25:06 2010
@@ -32,7 +32,7 @@
        </dependencies>

        <build>
-               <finalName>ss7-shell</finalName>
+               <finalName>mobicents-ss7-shell</finalName>
                <resources>
                        <resource>
                                <directory>src/main/resources</directory>
@@ -59,22 +59,104 @@
                                        </archive>
                                </configuration>
                        </plugin>
-                       <plugin>
+                       <!-- plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <configuration>
-                                       <descriptors>
-                                               <descriptor>
-                                                       
src/main/assembly/pojo.xml
-                                               </descriptor>
-                                       </descriptors>
-                                       <finalName>${pom.artifactId}</finalName>
+                               <descriptors>
+                               <descriptor>
+                               src/main/assembly/pojo.xml
+                               </descriptor>
+                               </descriptors>
+                               <finalName>${pom.artifactId}</finalName>
                                </configuration>
                                <executions>
+                               <execution>
+                               <phase>package</phase>
+                               <goals>
+                               <goal>directory-inline</goal>
+                               </goals>
+                               </execution>
+                               </executions>
+                               </plugin -->
+                       <plugin>
+                               <artifactId>maven-antrun-plugin</artifactId>
+                               <executions>
                                        <execution>
+                                               <id>deploy</id>
+                                               <phase>install</phase>
+                                               <goals>
+                                                       <goal>run</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <tasks>
+                                                               <copy 
todir="${jboss.home}/bin">
+                                                                       <fileset
+                                                                               
dir="${project.build.directory}">
+                                                                               
<filename
+                                                                                       
name="mobicents-ss7-shell.jar" />
+                                                                       
</fileset>
+                                                                       <fileset
+                                                                               
dir="${project.build.directory}/../src/main/config">
+                                                                               <include 
name="*.*" />
+                                                                       
</fileset>
+                                                               </copy>
+                                                       </tasks>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>undeploy</id>
+                                               <phase>clean</phase>
+                                               <goals>
+                                                       <goal>run</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <tasks>
+                                                               <delete 
failonerror="false">
+                                                                       <fileset
+                                                                               
dir="${basedir}/src/main/resources">
+                                                                               
<include
+                                                                                       
name="standard-components-du.jar" />
+                                                                       
</fileset>
+                                                               </delete>
+                                                               <delete 
failonerror="false"
+                                                                       
includeemptydirs="true">
+                                                                       <fileset
+                                                                               
dir="${jboss.home}/server/all/deploy/${build.finalName}" />
+                                                               </delete>
+                                                       </tasks>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>copy</id>
                                                <phase>package</phase>
                                                <goals>
-                                                       
<goal>directory-inline</goal>
+                                                       <goal>copy</goal>
                                                </goals>
+                                               <configuration>
+                                                       <artifactItems>
+                                                               <artifactItem>
+                                                                       
<groupId>javolution</groupId>
+                                                                       
<artifactId>javolution</artifactId>
+                                                                       
<version>
+                                                                               
${javolution.version}
+                                                                       
</version>
+                                                                       
<type>jar</type>
+                                                                       
<outputDirectory>
+                                                                               
${jboss.home}/bin/lib
+                                                                       
</outputDirectory>
+                                                                       
<destFileName>
+                                                                               
javolution.jar
+                                                                       
</destFileName>
+                                                               </artifactItem>
+                                                       </artifactItems>
+                                                       <!-- other configurations 
here -->
+                                               </configuration>
                                        </execution>
                                </executions>
                        </plugin>

Reply via email to