You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ch...@apache.org on 2007/04/25 09:09:30 UTC

svn commit: r532229 - in /webservices/synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java samples/src/main/scripts/axis2server.bat

Author: chathura_ce
Date: Wed Apr 25 00:09:29 2007
New Revision: 532229

URL: http://svn.apache.org/viewvc?view=rev&rev=532229
Log:
Changed the bat file to support http, https and server name parameters.

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java
    webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.bat

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java?view=diff&rev=532229&r1=532228&r2=532229
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/XMLToEndpointMapper.java Wed Apr 25 00:09:29 2007
@@ -26,7 +26,7 @@
 
 /**
  * This is a generic XMLToObjectMapper implementation for all endpoint types. Use this if the endpoint
- * type is not known at the where mapper is created. If the endpoint type is known use the EndpointFactory
+ * type is not known at the time mapper is created. If the endpoint type is known use the EndpointFactory
  * implementation for that specific endpoint.
  */
 public class XMLToEndpointMapper implements XMLToObjectMapper {

Modified: webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.bat
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.bat?view=diff&rev=532229&r1=532228&r2=532229
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.bat (original)
+++ webservices/synapse/trunk/java/modules/samples/src/main/scripts/axis2server.bat Wed Apr 25 00:09:29 2007
@@ -47,7 +47,9 @@
 
 :checkJava
 set _JAVACMD=%JAVACMD%
-set _PORT=
+set _HTTPPORT=
+set _HTTPSPORT=
+set _SERVERNAME=
 
 if "%JAVA_HOME%" == "" goto noJavaHome
 if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
@@ -55,14 +57,28 @@
 
 :setupArgs
 if ""%1""=="""" goto defaultParams
-if ""%1""==""-port"" goto port
+if ""%1""==""-http"" goto httpport
+if ""%1""==""-https"" goto httpsport
+if ""%1""==""-name"" goto servername
 shift
 goto setupArgs
 
 rem is a custom port specified
-:port
+:httpport
 shift
-set _PORT="-Dport=%1"
+set _HTTPPORT="-Dhttp_port=%1"
+shift
+goto setupArgs
+
+:httpsport
+shift
+set _HTTPSPORT="-Dhttps_port=%1"
+shift
+goto setupArgs
+
+:servername
+shift
+set _SERVERNAME="-Dserver_name=%1"
 shift
 goto setupArgs
 
@@ -87,7 +103,7 @@
 echo Using AXIS2_HOME   %AXIS2_HOME%
 
 cd %AXIS2_HOME%
-"%_JAVACMD%" %_PORT% %JAVA_OPTS% -cp "%AXIS2_CLASS_PATH%" -Djava.endorsed.dirs="%AXIS2_ENDORSED%" samples.util.SampleAxis2Server %AXIS2_CMD_LINE_ARGS%
+"%_JAVACMD%" %_HTTPPORT% %_HTTPSPORT% %_SERVERNAME% %JAVA_OPTS% -cp "%AXIS2_CLASS_PATH%" -Djava.endorsed.dirs="%AXIS2_ENDORSED%" samples.util.SampleAxis2Server %AXIS2_CMD_LINE_ARGS%
 goto end
 
 :end



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org