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"/>
6 <target name="cleanup">
7 <delete dir="${out.dir}" failonerror="false"/>
11 <mkdir dir="${out.dir}"/>
12 <mkdir dir="${tmp.dir}"/>
15 <macrodef name="call_gant">
16 <attribute name="script" />
18 <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
19 <jvmarg line="-Xmx612m -XX:MaxPermSize=152m"/>
20 <sysproperty key="java.awt.headless" value="true"/>
21 <arg line=""-Dgant.script=@{script}""/>
22 <arg line=""-Dteamcity.build.tempDir=${tmp.dir}""/>
23 <arg line=""-Didea.test.group=ALL_EXCLUDE_DEFINED""/>
25 <arg value="${project.home}/build/gant.xml"/>
30 <target name="build" depends="init">
31 <call_gant script="${project.home}/build/scripts/dist.gant"/>
34 <target name="test" depends="init">
35 <call_gant script="${project.home}/build/scripts/tests.gant"/>
38 <target name="all" depends="cleanup,build"/>