mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
release build for pycharm
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
# Set up IDEA_PROPERTIES environment variable to specify custom location of this properties file like
|
||||
# SET IDEA_PROPERTIES=c:\ideaconfig\idea.properties
|
||||
# before launching idea.
|
||||
# If not specified it is searched according following sequence (first successful is used).
|
||||
# 1. ${user.home}
|
||||
# 2. ${idea.home}/bin
|
||||
|
||||
# Use ${idea.home} macro to specify location relative to IDEA installation home
|
||||
# Also use ${xxx} where xxx is any java property (including defined in previous lines of this file) to refer to its value
|
||||
# Note for Windows users: please make sure you're using forward slashes. I.e. c:/idea/system
|
||||
|
||||
# path to IDEA config folder. Make sure you're using forward slashes
|
||||
idea.config.path=${user.home}/.PyCharm10/config
|
||||
|
||||
# path to IDEA system folder. Make sure you're using forward slashes
|
||||
idea.system.path=${user.home}/.PyCharm10/system
|
||||
|
||||
# path to user installed plugins folder. Make sure you're using forward slashes
|
||||
idea.plugins.path=${user.home}/.PyCharm10/config/plugins
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Maximum file size (kilobytes) IDEA should provide intellisense for.
|
||||
# The larger file is the slower its editor works and higher overall system memory requirements are
|
||||
# if intellisense is enabled. Remove this property or set to very large number if you need
|
||||
# intellisense for any files available regardless their size.
|
||||
# Please note this option doesn't operate with Java files. Regardless of the option value intellisense will anyway stay there.
|
||||
#---------------------------------------------------------------------
|
||||
idea.max.intellisense.filesize=2048
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# There are two possible values of idea.popup.weight property: "heavy" and "medium".
|
||||
# If you have WM configured as "Focus follows mouse with Auto Raise" then you have to
|
||||
# set this property to "medium". It prevents problems with popup menus on some
|
||||
# configurations.
|
||||
# ---------------------------------------------------------------------
|
||||
idea.popup.weight=heavy
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Disabling this property may lead to visual glitches like blinking and fail to repaint
|
||||
# on certain display adapter cards.
|
||||
#----------------------------------------------------------------------
|
||||
sun.java2d.noddraw=true
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# IDEA copies library jars to prevent their locking. If copying is not desirable, specify "true"
|
||||
#-----------------------------------------------------------------------
|
||||
idea.jars.nocopy=false
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
# Configure if a special launcher should be used when running processes from within IDEA.
|
||||
# Using Launcher enables "soft exit" and "thread dump" features
|
||||
#----------------------------------------------------------------------
|
||||
idea.no.launcher=false
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# The VM option value to be used start the JVM in debug mode.
|
||||
# Some environments define it in a different way (-XXdebug in Oracle VM)
|
||||
#-----------------------------------------------------------------------
|
||||
idea.xdebug.key=-Xdebug
|
||||
|
||||
# Workaround for slow scrolling in JDK6
|
||||
swing.bufferPerWindow=false
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Switch into JMX 1.0 compatible mode
|
||||
# Uncomment this option to be able to run IDEA using J2SDK 1.5 while working
|
||||
# with application servers (like WebLogic) running 1.4
|
||||
#-----------------------------------------------------------------------
|
||||
#jmx.serial.form=1.0
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Uncomment this option if you don't like to receive notifications about
|
||||
# fatal errors that happen to IDEA or plugins installed.
|
||||
#-----------------------------------------------------------------------
|
||||
#idea.fatal.error.notification=disabled
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Uncomment this property to prevent IDEA from throwing ProcessCanceledException when user activity
|
||||
# detected. This option is only useful for plugin developers, while debugging PSI related activities
|
||||
# performed in background error analysis thread.
|
||||
# DO NOT UNCOMMENT THIS UNLESS YOU'RE DEBUGGING IDEA ITSELF. Significant slowdowns and lockups will happen otherwise.
|
||||
#-----------------------------------------------------------------------
|
||||
#idea.ProcessCanceledException=disabled
|
||||
@@ -0,0 +1,66 @@
|
||||
@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/p:%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
|
||||
@@ -0,0 +1,5 @@
|
||||
-Xms32m
|
||||
-Xmx128m
|
||||
-XX:MaxPermSize=92m
|
||||
-ea
|
||||
-agentlib:yjpagent=disablej2ee,sessionname=PyCharm
|
||||
@@ -0,0 +1,178 @@
|
||||
<project name="Python IDE Release Build" default="release">
|
||||
<property name="idea.home" value="${basedir}/../../.."/>
|
||||
<property name="out.dir" value="${idea.home}/out/python"/>
|
||||
<property name="classes.dir" value="${out.dir}/classes"/>
|
||||
<property name="platform.dir" value="${out.dir}/platform/platform15"/>
|
||||
<property name="idea.dir" value="${out.dir}/idea"/>
|
||||
|
||||
<target name="release" depends="unzip,compile,jar,zip"/>
|
||||
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
</target>
|
||||
|
||||
<target name="unzip">
|
||||
<unzip dest="${idea.dir}/jdk15">
|
||||
<fileset dir="${idea.dir}" includes="idea*-jdk15.zip"/>
|
||||
</unzip>
|
||||
</target>
|
||||
|
||||
<taskdef name="javac2" classname="com.intellij.ant.Javac2">
|
||||
|
||||
</taskdef>
|
||||
|
||||
<fileset id="idea.libraries" dir="${idea.dir}/jdk15/lib">
|
||||
<include name="annotations.jar"/>
|
||||
<include name="util.jar"/>
|
||||
<include name="extensions.jar"/>
|
||||
<include name="boot.jar"/>
|
||||
<include name="bootstrap.jar"/>
|
||||
<include name="commons-codec-1.3.jar"/>
|
||||
<include name="commons-collections.jar"/>
|
||||
<include name="xstream.jar"/>
|
||||
<include name="jdom.jar"/>
|
||||
<include name="picocontainer.jar"/>
|
||||
<include name="jgoodies-forms.jar"/>
|
||||
<include name="ui.jar"/>
|
||||
<include name="jh.jar"/>
|
||||
<include name="jna.jar"/>
|
||||
<include name="jna-utils.jar"/>
|
||||
<include name="yjp-controller-api-redist.jar"/>
|
||||
<include name="log4j.jar"/>
|
||||
<include name="trove4j*"/>
|
||||
<include name="nanoxml-2.2.3.jar"/>
|
||||
<include name="microba.jar"/>
|
||||
<include name="alloy.jar"/>
|
||||
<include name="resources.jar"/>
|
||||
<include name="resources_en.jar"/>
|
||||
<include name="icons.jar"/>
|
||||
<include name="forms_rt.jar"/>
|
||||
</fileset>
|
||||
|
||||
<path id="classpath.lib">
|
||||
<fileset dir="${platform.dir}">
|
||||
<include name = "?*.jar"/>
|
||||
</fileset>
|
||||
<fileset refid="idea.libraries"/>
|
||||
</path>
|
||||
|
||||
<path id="sourcepath">
|
||||
<dirset dir="${basedir}/..">
|
||||
<include name="resources"/>
|
||||
<include name="src"/>
|
||||
</dirset>
|
||||
</path>
|
||||
|
||||
<!-- Compiler options -->
|
||||
<property name="compiler.debug" value="on"/>
|
||||
<property name="compiler.generate.no.warnings" value="off"/>
|
||||
<property name="compiler.args" value=""/>
|
||||
<property name="compiler.max.memory" value="256m"/>
|
||||
|
||||
<patternset id="sources.pt">
|
||||
<exclude name="**/CVS/**"/>
|
||||
<exclude name="**/SCCS/**"/>
|
||||
<exclude name="**/RCS/**"/>
|
||||
<exclude name="**/rcs/**"/>
|
||||
<exclude name="**/.DS_Store/**"/>
|
||||
<exclude name="**/.svn/**"/>
|
||||
<exclude name="*/rb/*"/>
|
||||
</patternset>
|
||||
<patternset id="resources.pt">
|
||||
<include name="**/?*.properties"/>
|
||||
<include name="**/?*.template"/>
|
||||
<include name="**/?*.xml"/>
|
||||
<include name="**/?*.gif"/>
|
||||
<include name="**/?*.png"/>
|
||||
<include name="**/?*.txt"/>
|
||||
<include name="**/?*.jpeg"/>
|
||||
<include name="**/?*.jpg"/>
|
||||
<include name="**/?*.html"/>
|
||||
<include name="**/?*.dtd"/>
|
||||
<include name="**/?*.tld"/>
|
||||
</patternset>
|
||||
|
||||
<target name="compile" depends="init">
|
||||
<mkdir dir="${classes.dir}"/>
|
||||
<javac2 destdir="${classes.dir}"
|
||||
debug="${compiler.debug}"
|
||||
nowarn="${compiler.generate.no.warnings}"
|
||||
memorymaximumsize="${compiler.max.memory}"
|
||||
fork="true">
|
||||
<compilerarg line="${compiler.args}"/>
|
||||
<classpath refid="classpath.lib"/>
|
||||
<src refid="sourcepath"/>
|
||||
<patternset refid="sources.pt"/>
|
||||
</javac2>
|
||||
|
||||
<!-- copy resources -->
|
||||
<copy todir="${classes.dir}">
|
||||
<fileset dir="${basedir}/../resources">
|
||||
<patternset refid="resources.pt"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
<fileset dir="${basedir}/../src">
|
||||
<patternset refid="resources.pt"/>
|
||||
<type type="file"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<replace file="${classes.dir}/idea/PythonApplicationInfo.xml" token="__BUILD_NUMBER__" value="${build.number}"/>
|
||||
<replace file="${classes.dir}/idea/PythonApplicationInfo.xml" token="__BUILD_DATE__" value="${DSTAMP}"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile,unzip">
|
||||
<mkdir dir="${out.dir}/jar"/>
|
||||
<mkdir dir="${out.dir}/deploy"/>
|
||||
<unzip src="${platform.dir}/platform.jar" dest="${out.dir}/jar"/>
|
||||
<jar jarfile="${out.dir}/deploy/pycharm.jar" compress="false">
|
||||
<fileset dir="${out.dir}/classes"/>
|
||||
<fileset dir="${out.dir}/jar"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="layout" depends="jar">
|
||||
<layout todir="${out.dir}/dist" xmlns="antlib:jetbrains.antlayout">
|
||||
<dir name="bin">
|
||||
<fileset dir="${idea.dir}/jdk15/bin">
|
||||
<include name="FileWatcher*.dll"/>
|
||||
<include name="focuskiller*.dll"/>
|
||||
<include name="yjpagent.dll"/>
|
||||
<include name="append.bat"/>
|
||||
<include name="log.xml"/>
|
||||
<include name="log4j.dtd"/>
|
||||
</fileset>
|
||||
<fileset dir="${basedir}">
|
||||
<include name="pycharm.bat"/>
|
||||
<include name="idea.properties"/>
|
||||
<include name="pycharm.exe.vmoptions"/>
|
||||
</fileset>
|
||||
</dir>
|
||||
<dir name="lib">
|
||||
<fileset dir="${platform.dir}" includes="platform-api.jar"/>
|
||||
<fileset dir="${out.dir}/deploy"/>
|
||||
<fileset refid="idea.libraries"/>
|
||||
</dir>
|
||||
<dir name="plugins">
|
||||
<dir name="cvsIntegration">
|
||||
<fileset dir="${idea.dir}/jdk15/plugins/cvsIntegration"/>
|
||||
</dir>
|
||||
<dir name="images">
|
||||
<fileset dir="${idea.dir}/jdk15/plugins/images"/>
|
||||
</dir>
|
||||
<dir name="PerforceIntegration">
|
||||
<fileset dir="${idea.dir}/jdk15/plugins/PerforceIntegration"/>
|
||||
</dir>
|
||||
<dir name="svn4idea">
|
||||
<fileset dir="${idea.dir}/jdk15/plugins/svn4idea"/>
|
||||
</dir>
|
||||
</dir>
|
||||
</layout>
|
||||
</target>
|
||||
|
||||
<target name="zip" depends="layout">
|
||||
<zip destfile="${out.dir}/pycharm-${build.number}.zip">
|
||||
<fileset dir="${out.dir}/dist"/>
|
||||
</zip>
|
||||
</target>
|
||||
</project>
|
||||
Reference in New Issue
Block a user