PY-33235 Add highlighting annotator for nested functions
[idea/community.git] / build.xml
1 <!--
2  This build script compiles, build distribution archives and run tests in IntelliJ IDEA Community Edition. Build process can be customized
3  via options, see org.jetbrains.intellij.build.BuildOptions and org.jetbrains.intellij.build.TestingOptions classes for details. System properties
4  from these classes can be passed as Ant properties in the command line, e.g. run 'ant -Dintellij.build.output.root=/path/to/dir' to
5  specify custom output directory.
6
7  Note that this script is for building IntelliJ IDEA Community Edition only. If you want to build your own product based on IntelliJ Platform,
8  create a gant script for it, see javadoc for org.jetbrains.intellij.build package for details.
9  -->
10 <project name="IntelliJ IDEA Community Edition" default="build">
11   <property name="project.home" value="${basedir}"/>
12
13   <target name="init">
14     <condition property="gradle.executable" value="${project.home}/build/dependencies/gradlew.bat"
15                else="${project.home}/build/dependencies/gradlew">
16       <os family="windows"/>
17     </condition>
18     <exec executable="${gradle.executable}" dir="${project.home}/build/dependencies" failonerror="true">
19       <env key="JAVA_HOME" value="${java.home}"/>
20       <arg value="--no-daemon"/>
21       <arg value="setupKotlinPlugin"/>
22     </exec>
23     <propertyset id="intellij.build.properties">
24       <propertyref name="build.number"/>
25       <propertyref prefix="intellij.build."/>
26     </propertyset>
27   </target>
28
29   <macrodef name="call_gant">
30     <attribute name="script" />
31     <attribute name="target" default="default"/>
32     <sequential>
33       <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
34         <jvmarg line="-Xmx1500m"/>
35         <sysproperty key="jna.nosys" value="true" />
36         <sysproperty key="java.awt.headless" value="true"/>
37         <sysproperty key="gant.script" value="@{script}"/>
38         <sysproperty key="gant.target" value="@{target}"/>
39         <syspropertyset refid="intellij.build.properties"/>
40         <arg value="-f"/>
41         <arg value="${project.home}/build/gant.xml"/>
42       </java>
43     </sequential>
44   </macrodef>
45
46   <!-- build distribution archives for IntelliJ Community Edition in out/idea-ce/artifacts directory -->
47   <target name="build" depends="init">
48     <call_gant script="${project.home}/build/scripts/idea_community.gant"/>
49   </target>
50
51   <target name="test" depends="init">
52     <call_gant script="${project.home}/build/scripts/tests_in_community.gant"/>
53   </target>
54
55   <!-- Creates an updater-full.jar in ${intellij.build.output.root}/artifacts, it includes 'intellij.platform.updater' module with all its dependencies -->
56   <target name="fullupdater" depends="init">
57     <call_gant script="${project.home}/build/scripts/idea_community.gant" target="updater-full"/>
58   </target>
59 </project>