gant, jps and groovy updated
[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="gant.home" value="${project.home}/build/lib/gant"/>
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   </target>
13
14   <macrodef name="call_gant">
15     <attribute name="script" />
16     <sequential>
17       <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
18         <jvmarg line="-Xms64m -Xmx512m"/>
19         <jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
20
21         <classpath>
22           <fileset dir="${project.home}/lib/ant/lib">
23             <include name="*.jar"/>
24           </fileset>
25           <fileset dir="${gant.home}/lib">
26             <include name="*.jar"/>
27           </fileset>
28         </classpath>
29
30         <arg value="-f"/>
31         <arg value="${project.home}/build/gant.xml"/>
32       </java>
33     </sequential>
34   </macrodef>
35
36   <target name="build" depends="init">
37     <call_gant script="${project.home}/build/scripts/dist.gant"/>
38   </target>
39
40   <target name="all" depends="cleanup,build"/>
41 </project>