mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (features unsupported by native launchers dropped from launch scripts)
This commit is contained in:
@@ -136,11 +136,6 @@ if [ -n "$@@product_uc@@_PROPERTIES" ]; then
|
||||
IDE_PROPERTIES_PROPERTY="-Didea.properties.file=$@@product_uc@@_PROPERTIES"
|
||||
fi
|
||||
|
||||
MAIN_CLASS_NAME="$@@product_uc@@_MAIN_CLASS_NAME"
|
||||
if [ -z "$MAIN_CLASS_NAME" ]; then
|
||||
MAIN_CLASS_NAME="com.intellij.idea.Main"
|
||||
fi
|
||||
|
||||
VM_OPTIONS=""
|
||||
VM_OPTIONS_FILES_USED=""
|
||||
for vm_opts_file in "$IDE_BIN_HOME/@@vm_options@@$BITS.vmoptions" "$OS_SPECIFIC_BIN_DIR/@@vm_options@@$BITS.vmoptions" "$HOME/.@@system_selector@@/@@vm_options@@$BITS.vmoptions" "$@@product_uc@@_VM_OPTIONS"; do
|
||||
@@ -182,8 +177,7 @@ LD_LIBRARY_PATH="$IDE_BIN_HOME:$LD_LIBRARY_PATH" "$JDK/jre/bin/java" \
|
||||
-Djb.restart.code=88 -Didea.paths.selector=@@system_selector@@ \
|
||||
$IDE_PROPERTIES_PROPERTY \
|
||||
$IDE_JVM_ARGS \
|
||||
$REQUIRED_JVM_ARGS \
|
||||
$MAIN_CLASS_NAME \
|
||||
com.intellij.idea.Main \
|
||||
"$@"
|
||||
EC=$?
|
||||
test $EC -ne 88 && exit $EC
|
||||
|
||||
@@ -33,9 +33,6 @@ IF EXIST "%JRE%\lib\amd64" SET BITS=64
|
||||
SET IDE_BIN_DIR=%~dp0
|
||||
SET IDE_HOME=%IDE_BIN_DIR%\..
|
||||
|
||||
SET MAIN_CLASS_NAME=%@@product_uc@@_MAIN_CLASS_NAME%
|
||||
IF "%MAIN_CLASS_NAME%" == "" SET MAIN_CLASS_NAME=com.intellij.idea.Main
|
||||
|
||||
IF NOT "%@@product_uc@@_PROPERTIES%" == "" SET IDE_PROPERTIES_PROPERTY="-Didea.properties.file=%@@product_uc@@_PROPERTIES%"
|
||||
|
||||
:: ---------------------------------------------------------------------
|
||||
@@ -54,7 +51,7 @@ IF EXIST "%VM_OPTIONS_FILE%" SET ACC=%ACC% -Djb.vmOptionsFile="%VM_OPTIONS_FILE%
|
||||
|
||||
SET COMMON_JVM_ARGS="-XX:ErrorFile=%USERPROFILE%\java_error_in_@@product_uc@@_%%p.log" "-Xbootclasspath/a:%IDE_HOME%/lib/boot.jar" -Didea.paths.selector=@@system_selector@@ %IDE_PROPERTIES_PROPERTY%
|
||||
SET IDE_JVM_ARGS=@@ide_jvm_args@@
|
||||
SET ALL_JVM_ARGS=%ACC% %COMMON_JVM_ARGS% %IDE_JVM_ARGS% %REQUIRED_JVM_ARGS%
|
||||
SET ALL_JVM_ARGS=%ACC% %COMMON_JVM_ARGS% %IDE_JVM_ARGS%
|
||||
|
||||
@@class_path@@
|
||||
IF NOT "%@@product_uc@@_CLASS_PATH%" == "" SET CLASS_PATH=%CLASS_PATH%;%@@product_uc@@_CLASS_PATH%
|
||||
@@ -65,7 +62,7 @@ IF NOT "%@@product_uc@@_CLASS_PATH%" == "" SET CLASS_PATH=%CLASS_PATH%;%@@produc
|
||||
SET OLD_PATH=%PATH%
|
||||
SET PATH=%IDE_BIN_DIR%;%PATH%
|
||||
|
||||
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" %MAIN_CLASS_NAME% %*
|
||||
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" com.intellij.idea.Main %*
|
||||
|
||||
SET PATH=%OLD_PATH%
|
||||
GOTO end
|
||||
|
||||
Reference in New Issue
Block a user