text stringlengths 0 834k |
|---|
:develop |
:findMaven |
@rem Find Mvn.cmd |
if defined M2_HOME ( |
goto findMavenFromM2Home |
) |
set MAVEN_CMD=mvn.cmd |
%MAVEN_CMD% -version >NUL 2>&1 |
if ""%ERRORLEVEL%"" == ""0"" goto runmvn |
echo. |
echo Error: M2_HOME is not set and no 'mvn' command could be found in your PATH. |
echo. |
echo Please set the M2_HOME variable in your environment to match the |
echo location of the Maven installation. |
goto end |
:findMavenFromM2Home |
set M2_HOME=%M2_HOME:""=% |
set MAVEN_CMD=%M2_HOME%/bin/mvn.cmd |
if exist ""%MAVEN_CMD%"" goto runmvn |
echo. |
echo Error: M2_HOME is set to an invalid directory: %M2_HOME% |
echo. |
echo Please set the M2_HOME variable in your environment to match the |
echo location of the Maven installation. |
goto end |
:runmvn |
echo Looking for ""%APP_NAME%"" Maven folder .... |
set s= |
for /R ""%COLA_HOME%"" %%s in (%APP_NAME%) do ( |
if exist ""%%s\pom.xml"" ( |
setlocal enabledelayedexpansion |
echo [Maven_Folder]:%%s |
cd %%s |
if not ""%RUN_ARGS%"" == """" (set s=-Drun.arguments=""%RUN_ARGS: =,%"") |
if not ""%JVM_ARGS%"" == """" (set s=!s! -Djvm.argments=""%JVM_ARGS%"") |
%MAVEN_CMD% spring-boot:run !s! |
if not ""%ERRORLEVEL%""==""0"" (goto mvnError) |
pause |
) |
) |
echo ERROR: ""%APP_NAME%"" Maven folder is not exist. |
goto end |
:javaError |
echo. |
echo ERROR: Illegal java command. |
echo Command Prompt: %JAVA_EXE% %JVM_ARGS% -javaagent:%COLA_HOME%/lib/aspectjweaver-1.8.5.jar -Dorg.aspectj.tracing.enabled=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.showWeaveInfo=false -jar !filePath! %RUN_ARGS% |
goto end |
:mvnError |
echo. |
echo ERROR: Illegal mvn command. |
echo Command Prompt: %MVN_CMD% spring-boot:run !s! |
goto end |
:help |
echo. |
echo Usage: cola app-name [start ^| stop ^| develop ^| debug] [debug remote port] [-Djvm.args=""...""] [-Drun.args=""...""] |
echo. |
echo Sample: |
echo 1.if you want to start cola-discovery application node. |
echo cola registry start |
echo. |
echo 2.if you want to stop cola-discovery application node. |
echo cola registry stop |
echo. |
echo 3.if you want to debug cola-discovery application node. |
echo cola discovery debug 9000 |
echo. |
echo 4.if you want to start cola-discovery application node via develop mode. |
echo cola registry develop |
echo. |
echo 5.if you want to add arguments to cola-discovery application node. |
echo cola registry start -Drun.args=""--server.port=8080 --spring.application.name=test"" -Djvm.args=""-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=9000,suspend=n"" |
goto end |
:paramError |
echo. |
echo ERROR: Illegal Parameters |
echo Please use '-help' for more information. |
:end |
endlocal",26.1290322581,224,0.7028806584 |
108,d00d8bef2696c19d01923c8959b07eb01c47f95f,8163,bat,Batchfile,distribution/src/business-process/conf/wso2server.bat,isuruuy429/product-ei,13e429df5e94efb7e373dd648e8cc73028917ccf,['Apache-2.0'],,,,distribution/src/business-process/conf/wso2server.bat,isuruuy429/product-ei,13e429df5e94efb7e373dd648e8cc73028917ccf,['Ap... |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.