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"/>
7 <target name="cleanup">
8 <delete dir="${out.dir}" failonerror="false"/>
12 <mkdir dir="${out.dir}"/>
13 <mkdir dir="${tmp.dir}"/>
16 <macrodef name="call_gant">
17 <attribute name="script" />
19 <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
20 <jvmarg line="-Xmx512m -XX:MaxPermSize=152m"/>
22 <arg line=""-Dgant.script=@{script}""/>
23 <arg line=""-Dteamcity.build.tempDir=${tmp.dir}""/>
24 <arg line=""-Didea.test.group=ALL_EXCLUDE_DEFINED""/>
26 <arg value="${project.home}/build/gant.xml"/>
31 <target name="build" depends="init">
32 <call_gant script="${project.home}/build/scripts/dist.gant"/>
35 <target name="test" depends="init">
36 <call_gant script="${project.home}/build/scripts/tests.gant"/>
39 <target name="all" depends="cleanup,build"/>