mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
67 lines
2.8 KiB
Batchfile
67 lines
2.8 KiB
Batchfile
@echo off
|
|
|
|
::----------------------------------------------------------------------
|
|
:: PyCharm Startup Script
|
|
::----------------------------------------------------------------------
|
|
|
|
:: ---------------------------------------------------------------------
|
|
:: Before you run PyCharm specify the location of the
|
|
:: JDK 1.5 installation directory which will be used for running IDEA
|
|
:: ---------------------------------------------------------------------
|
|
IF "%IDEA_JDK%" == "" SET IDEA_JDK=%JDK_HOME%
|
|
IF "%IDEA_JDK%" == "" goto error
|
|
|
|
:: ---------------------------------------------------------------------
|
|
:: Before you run PyCharm specify the location of the
|
|
:: directory where PyCharm is installed
|
|
:: In most cases you do not need to change the settings below.
|
|
:: ---------------------------------------------------------------------
|
|
SET IDEA_HOME=..
|
|
|
|
SET JAVA_EXE=%IDEA_JDK%\jre\bin\java.exe
|
|
IF NOT EXIST "%JAVA_EXE%" goto error
|
|
|
|
IF "%IDEA_MAIN_CLASS_NAME%" == "" SET IDEA_MAIN_CLASS_NAME=com.intellij.idea.Main
|
|
|
|
IF NOT "%IDEA_PROPERTIES%" == "" set IDEA_PROPERTIES_PROPERTY=-Didea.properties.file=%IDEA_PROPERTIES%
|
|
|
|
:: ---------------------------------------------------------------------
|
|
:: You may specify your own JVM arguments in pycharm.exe.vmoptions file. Put one option per line there.
|
|
:: ---------------------------------------------------------------------
|
|
SET ACC=
|
|
FOR /F "delims=" %%i in (%IDEA_HOME%\bin\pycharm.exe.vmoptions) DO call %IDEA_HOME%\bin\append.bat "%%i"
|
|
|
|
set REQUIRED_IDEA_JVM_ARGS=-Xbootclasspath/a:%IDEA_HOME%/lib/boot.jar -Didea.platform.prefix=Python %IDEA_PROPERTIES_PROPERTY% %REQUIRED_IDEA_JVM_ARGS%
|
|
SET JVM_ARGS=%ACC% %REQUIRED_IDEA_JVM_ARGS%
|
|
|
|
SET OLD_PATH=%PATH%
|
|
SET PATH=%IDEA_HOME%\bin;%PATH%
|
|
|
|
SET CLASS_PATH=%IDEA_HOME%\lib\bootstrap.jar
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_HOME%\lib\util.jar
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_HOME%\lib\jdom.jar
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_HOME%\lib\log4j.jar
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_HOME%\lib\extensions.jar
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_HOME%\lib\trove4j.jar
|
|
|
|
:: TODO[yole]: remove
|
|
SET CLASS_PATH=%CLASS_PATH%;%IDEA_JDK%\lib\tools.jar
|
|
|
|
:: ---------------------------------------------------------------------
|
|
:: You may specify additional class paths in IDEA_CLASS_PATH variable.
|
|
:: It is a good idea to specify paths to your plugins in this variable.
|
|
:: ---------------------------------------------------------------------
|
|
IF NOT "%IDEA_CLASS_PATH%" == "" SET CLASS_PATH=%CLASS_PATH%;%IDEA_CLASS_PATH%
|
|
|
|
"%JAVA_EXE%" %JVM_ARGS% -cp "%CLASS_PATH%" %IDEA_MAIN_CLASS_NAME% %*
|
|
|
|
SET PATH=%OLD_PATH%
|
|
goto end
|
|
:error
|
|
echo ---------------------------------------------------------------------
|
|
echo ERROR: cannot start PyCharm.
|
|
echo No JDK found to run PyCharm. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
|
|
echo ---------------------------------------------------------------------
|
|
pause
|
|
:end
|