-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve javafx cdi module, fix some issues.
- Loading branch information
Showing
38 changed files
with
1,137 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
corant-devops/corant-devops-maven/corant-devops-maven-plugin/src/main/resources/runw.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
@echo off | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
TITLE #APPLICATION_NAME# | ||
|
||
set MAIN_CLASS=#MAIN_CLASS# | ||
set USED_CONFIG_LOCATION=#USED_CONFIG_LOCATION# | ||
set USED_CONFIG_PROFILE=#USED_CONFIG_PROFILE# | ||
set ADDITIONAL_VM_ARGUMENTS=#ADDITIONAL_VM_ARGUMENTS# | ||
set MODULE_ARGUMENTS=#MODULE_ARGUMENTS# | ||
set APPLICATION_ARGUMENTS=#APPLICATION_ARGUMENTS# | ||
set APPLICATION_NAME=#APPLICATION_NAME# | ||
|
||
|
||
if "%OS%" == "Windows_NT" ( | ||
set "DIR_PATH=%~dp0%" | ||
) else ( | ||
set DIR_PATH=.\ | ||
) | ||
|
||
pushd "%DIR_PATH%.." | ||
set "ROOT_DIR=%CD%" | ||
popd | ||
|
||
set LIB_DIR=%ROOT_DIR%\lib | ||
set APP_DIR=%ROOT_DIR%\app | ||
set CFG_DIR=%ROOT_DIR%\cfg | ||
set LCF_URL=%CFG_DIR%\log4j2.xml | ||
|
||
set CLASS_PATH=%CFG_DIR%\*;%APP_DIR%\*;%LIB_DIR%\* | ||
|
||
set _JAVACMD=%JAVACMD% | ||
|
||
if "%JAVA_HOME%" == "" goto NO_JAVA_HOME | ||
if not exist "%JAVA_HOME%\bin\javaw.exe" goto NO_JAVA_HOME | ||
if "%_JAVACMD%" == "" set _JAVACMD=start "%JAVA_HOME%\bin\" javaw | ||
goto RUN_JAVA | ||
|
||
:NO_JAVA_HOME | ||
if "%_JAVACMD%" == "" set _JAVACMD=start javaw | ||
echo. | ||
echo Warning: JAVA_HOME environment variable is not set. | ||
echo. | ||
|
||
:RUN_JAVA | ||
|
||
set "CFG_JVM_OPTS=%~dp0\..\cfg\jvm.options" | ||
set CORANT_JVM_OPTS= | ||
if NOT "%ADDITIONAL_VM_ARGUMENTS%" == "" set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% %ADDITIONAL_VM_ARGUMENTS% | ||
|
||
@setlocal | ||
rem extract the options from the JVM options file %CFG_JVM_OPTS% | ||
rem such options are the lines beginning with '-', thus "findstr /b" | ||
for /F "usebackq delims=" %%a in (`findstr /b \- "%CFG_JVM_OPTS%"`) do set JVM_OPTIONS=!JVM_OPTIONS! %%a | ||
@endlocal & set CORANT_JVM_OPTS=%JVM_OPTIONS% %CORANT_JVM_OPTS% | ||
|
||
if "%USED_CONFIG_LOCATION%" == "" set USED_CONFIG_LOCATION=filesystem:%CFG_DIR% | ||
|
||
set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% -Dcorant.config.location="%USED_CONFIG_LOCATION%" | ||
|
||
if NOT "%USED_CONFIG_PROFILE%" == "" set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% -Dcorant.config.profile="%USED_CONFIG_PROFILE%" | ||
|
||
if NOT "%APPLICATION_NAME%" == "" set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% -Dcorant.application-name="%APPLICATION_NAME%" | ||
|
||
if exist "%LCF_URL%" set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% -Dlog4j.configurationFile="%LCF_URL%" | ||
|
||
set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% -Dcorant.application.root-dir=filesystem:"%ROOT_DIR%" -classpath "%CLASS_PATH%" | ||
|
||
if NOT "%DEBUG_ARGS%"=="" set CORANT_JVM_OPTS=%CORANT_JVM_OPTS% %DEBUG_ARGS% | ||
|
||
%_JAVACMD% %CORANT_JVM_OPTS% %MODULE_ARGUMENTS% %MAIN_CLASS% %APPLICATION_ARGUMENTS% | ||
|
||
endlocal | ||
GOTO :EOF | ||
|
||
:EOF |
22 changes: 22 additions & 0 deletions
22
corant-devops/corant-devops-maven/corant-devops-maven-plugin/src/main/resources/runw.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# !/bin/sh | ||
MAIN_CLASS=#MAIN_CLASS# | ||
ADDITIONAL_VM_ARGUMENTS=#ADDITIONAL_VM_ARGUMENTS# | ||
MODULE_ARGUMENTS=#MODULE_ARGUMENTS# | ||
APPLICATION_NAME=#APPLICATION_NAME# | ||
|
||
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
ROOT_DIR=$(cd $BIN_DIR/.. && pwd) | ||
|
||
CLASSPATH="$ROOT_DIR/lib/*:$ROOT_DIR/app/*" | ||
|
||
JAVA="javaw " | ||
|
||
CORANT_JVM_OPTS="$ADDITIONAL_VM_ARGUMENTS -cp $CLASSPATH" | ||
|
||
if test -n "$APPLICATION_NAME" | ||
then | ||
CORANT_JVM_OPTS="$CORANT_JVM_OPTS -Dcorant.application-name=$APPLICATION_NAME" | ||
fi | ||
|
||
exec $JAVA $CORANT_JVM_OPTS $* $MODULE_ARGUMENTS $MAIN_CLASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.