bundle Kotlin plugin with IDEA, use bundled runtime from plugin
[idea/community.git] / build.xml
1 <project name="IntelliJ IDEA Community Edition" default="all">
2   <property name="project.home" value="${basedir}"/>
3   <property name="out.dir" value="${project.home}/out"/>
4   <property name="tmp.dir" value="${project.home}/out/tmp"/>
5
6   <target name="cleanup">
7     <delete dir="${out.dir}" failonerror="false"/>
8   </target>
9
10   <target name="init">
11     <mkdir dir="${out.dir}"/>
12     <mkdir dir="${tmp.dir}"/>
13     <ant dir="build" antfile="download_kotlin.xml"/>
14   </target>
15
16   <macrodef name="call_gant">
17     <attribute name="script" />
18     <sequential>
19       <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
20         <jvmarg line="-Xmx612m -XX:MaxPermSize=152m"/>
21         <sysproperty key="java.awt.headless" value="true"/>
22         <arg line="&quot;-Dgant.script=@{script}&quot;"/>
23         <arg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>
24         <arg line="&quot;-Didea.test.group=ALL_EXCLUDE_DEFINED&quot;"/>
25         <arg value="-f"/>
26         <arg value="${project.home}/build/gant.xml"/>
27       </java>
28     </sequential>
29   </macrodef>
30
31   <target name="build" depends="init">
32     <call_gant script="${project.home}/build/scripts/dist.gant"/>
33   </target>
34
35   <target name="test" depends="init">
36     <call_gant script="${project.home}/build/scripts/tests.gant"/>
37   </target>
38
39   <target name="all" depends="cleanup,build"/>
40 </project>