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="gant.home" value="${project.home}/build/lib/gant"/>
6 <target name="cleanup">
7 <delete dir="${out.dir}" failonerror="false"/>
11 <mkdir dir="${out.dir}"/>
14 <macrodef name="call_gant">
15 <attribute name="script" />
17 <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
18 <jvmarg line="-Xms64m -Xmx512m"/>
19 <jvmarg line=""-Dgant.script=@{script}""/>
22 <fileset dir="${project.home}/lib/ant/lib">
23 <include name="*.jar"/>
25 <pathelement location="${project.home}/build/lib/gant_patches.jar"/>
26 <fileset dir="${gant.home}/lib">
27 <include name="*.jar"/>
32 <arg value="${project.home}/build/gant.xml"/>
37 <target name="build" depends="init">
38 <call_gant script="${project.home}/build/scripts/dist.gant"/>
41 <target name="all" depends="cleanup,build"/>