FileIndex.*source* javadoc should say that it accounts for both production and tests
[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
6   <target name="cleanup">
7     <delete dir="${out.dir}" failonerror="false"/>
8   </target>
9
10   <target name="init">
11     <mkdir dir="${out.dir}"/>
12     <mkdir dir="${tmp.dir}"/>
13   </target>
14
15   <macrodef name="call_gant">
16     <attribute name="script" />
17     <sequential>
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="&quot;-Dgant.script=@{script}&quot;"/>
22         <arg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>
23         <arg line="&quot;-Didea.test.group=ALL_EXCLUDE_DEFINED&quot;"/>
24         <arg value="-f"/>
25         <arg value="${project.home}/build/gant.xml"/>
26       </java>
27     </sequential>
28   </macrodef>
29
30   <target name="build" depends="init">
31     <call_gant script="${project.home}/build/scripts/dist.gant"/>
32   </target>
33
34   <target name="test" depends="init">
35     <call_gant script="${project.home}/build/scripts/tests.gant"/>
36   </target>
37
38   <target name="all" depends="cleanup,build"/>
39 </project>