Run CE build script same way as a build server (fix missing javac error)
[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   <property name="gant.home" value="${project.home}/build/lib/gant"/>
6
7   <target name="cleanup">
8     <delete dir="${out.dir}" failonerror="false"/>
9   </target>
10
11   <target name="init">
12     <mkdir dir="${out.dir}"/>
13     <mkdir dir="${tmp.dir}"/>
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="-Xmx512m -XX:MaxPermSize=152m"/>
21
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 line="-lib ${gant.home}/lib/"/>
26         <arg value="-f"/>
27         <arg value="${project.home}/build/gant.xml"/>
28       </java>
29     </sequential>
30   </macrodef>
31
32   <target name="build" depends="init">
33     <call_gant script="${project.home}/build/scripts/dist.gant"/>
34   </target>
35
36   <target name="test" depends="init">
37     <call_gant script="${project.home}/build/scripts/tests.gant"/>
38   </target>
39
40   <target name="all" depends="cleanup,build"/>
41 </project>