Integrate wso2bps
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / distribution / standalone / src / main / assembly / wso2bps-ext / bin / startup.bat
diff --git a/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat b/wso2bpel-ext/wso2bpel-core/distribution/standalone/src/main/assembly/wso2bps-ext/bin/startup.bat
new file mode 100644 (file)
index 0000000..1d32352
--- /dev/null
@@ -0,0 +1,40 @@
+@REM\r
+@REM Copyright 2016 ZTE Corporation.\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM     http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+\r
+@echo off\r
+title wso2bpel-service\r
+\r
+set RUNHOME=%~dp0\r
+echo ### RUNHOME: %RUNHOME%\r
+echo ### Starting wso2bpel-service\r
+\r
+set JAVA="%JAVA_HOME%\bin\java.exe"\r
+set port=8312\r
+set jvm_opts=-Xms50m -Xmx128m\r
+rem set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n\r
+set class_path=%RUNHOME%;..\lib\*;%RUNHOME%..\wso2bpel-service.jar\r
+echo ### jvm_opts: %jvm_opts%\r
+echo ### class_path: %class_path%\r
+\r
+%JAVA% -classpath %class_path% %jvm_opts% org.openo.carbon.bpel.Wso2BpelApplication server %RUNHOME%../conf/wso2bpel.yml\r
+\r
+IF ERRORLEVEL 1 goto showerror\r
+exit\r
+:showerror\r
+echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!\r
+echo After checking, press any key to close \r
+pause\r
+exit
\ No newline at end of file