Author: supun Date: Sun Jun 7 11:01:18 2009 New Revision: 38036 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=38036
Log: New bat file for running ESB samples Modified: trunk/esb/java/modules/samples/src/main/scripts/wso2esb-samples.bat Modified: trunk/esb/java/modules/samples/src/main/scripts/wso2esb-samples.bat URL: http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/samples/src/main/scripts/wso2esb-samples.bat?rev=38036&r1=38035&r2=38036&view=diff ============================================================================== --- trunk/esb/java/modules/samples/src/main/scripts/wso2esb-samples.bat (original) +++ trunk/esb/java/modules/samples/src/main/scripts/wso2esb-samples.bat Sun Jun 7 11:01:18 2009 @@ -0,0 +1,53 @@ +...@echo off + +REM --------------------------------------------------------------------------- +REM Copyright 2005-2009 WSO2, Inc. http://www.wso2.org +REM +REM Licensed under the Apache License, Version 2.0 (the "License"); +REM you may not use this file except in compliance with the License. +REM You may obtain a copy of the License at +REM +REM http://www.apache.org/licenses/LICENSE-2.0 +REM +REM Unless required by applicable law or agreed to in writing, software +REM distributed under the License is distributed on an "AS IS" BASIS, +REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +REM See the License for the specific language governing permissions and +REM limitations under the License. + +rem --------------------------------------------------------------------------- +rem Main Script for WSO2 Carbon +rem +rem Environment Variable Prequisites +rem +rem CARBON_HOME Home of CARBON installation. If not set I will try +rem to figure it out. +rem +rem JAVA_HOME Must point at your Java Development Kit installation. +rem +rem JAVA_OPTS (Optional) Java runtime options used when the commands +rem is executed. +rem --------------------------------------------------------------------------- + +SET cn=1 + +set CMD=%* + +:initial +if "%1"=="-sn" goto sname +if "%1"=="" goto run +shift +goto initial + +:sname +shift +set cn=%1 +goto lreturn + +:lreturn +shift +goto initial + +:run +wso2server.bat %CMD% -Desb.sample=%cn% -Dcarbon.registry.root=/esb-samples/s%cn% + _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
