Updating versions of project dependencies: runtimeBuild->17.0.6b894.3, jdkBuild-...
[idea/community.git] / build.xml
1 <!--
2  This build script compiles, builds distribution archives and runs 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 intended 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 <!-- Using ant is OBSOLETE, please call installers.cmd or tests.cmd directly -->
11 <!-- Refer to README.md for more instructions -->
12 <project name="IntelliJ IDEA Community Edition" default="build">
13   <mkdir dir="build/jps-bootstrap-work" />
14   <echoproperties destfile="build/jps-bootstrap-work/intellij.properties">
15     <propertyset>
16       <propertyref prefix="idea."/>
17       <propertyref prefix="intellij."/>
18       <propertyref prefix="test."/>
19       <propertyref prefix="module."/>
20       <propertyref prefix="debug."/>
21     </propertyset>
22   </echoproperties>
23
24   <condition property="script.suffix" value=".cmd">
25     <os family="windows" />
26   </condition>
27   <property name="script.suffix" value=".sh" />
28
29   <macrodef name="jps-bootstrap">
30     <attribute name="module"/>
31     <attribute name="class"/>
32
33     <sequential>
34       <exec executable="${basedir}/platform/jps-bootstrap/jps-bootstrap${script.suffix}" failonerror="true">
35         <arg value="--properties-file" />
36         <arg value="${basedir}/build/jps-bootstrap-work/intellij.properties" />
37         <!-- project to open -->
38         <arg value="${basedir}" />
39         <!-- project module -->
40         <arg value="@{module}"/>
41         <!-- main class to run -->
42         <arg value="@{class}"/>
43       </exec>
44     </sequential>
45   </macrodef>
46
47   <!-- build distribution archives for IntelliJ Community Edition in out/idea-ce/artifacts directory -->
48   <!-- this is deprecated. please call installers.cmd directly -->
49   <target name="build">
50     <echo message="***** Using ant is OBSOLETE, please call installers.cmd directly. See README.md *****" level="warning" />
51     <jps-bootstrap class="OpenSourceCommunityInstallersBuildTarget" module="intellij.idea.community.build" />
52   </target>
53
54   <!-- run project tests -->
55   <!-- this is deprecated. please use tests.cmd directly -->
56   <target name="test">
57     <echo message="***** Using ant is OBSOLETE, please call tests.cmd directly. See README.md *****" level="warning" />
58     <jps-bootstrap class="CommunityRunTestsBuildTarget" module="intellij.idea.community.build" />
59   </target>
60
61   <!-- Creates an updater-full.jar in ${intellij.build.output.root}/artifacts, it includes 'intellij.platform.updater' module with all its dependencies -->
62   <!-- this is deprecated, please use full_updater.cmd directly -->
63   <target name="fullupdater">
64     <echo message="***** Using ant is OBSOLETE, please call build/full_updater.cmd directly. See README.md *****" level="warning" />
65     <jps-bootstrap class="FullUpdaterBuildTarget" module="intellij.idea.community.build" />
66   </target>
67 </project>