typo
[idea/community.git] / build.xml
index 0ee6355da613b39ee0ddb217b09403052bce273f..a4d0df3a3172dfe0b031f9a089a4d1debe248469 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,6 +1,7 @@
 <project name="IntelliJ IDEA Community Edition" default="all">
   <property name="project.home" value="${basedir}"/>
   <property name="out.dir" value="${project.home}/out"/>
+  <property name="tmp.dir" value="${project.home}/out/tmp"/>
   <property name="gant.home" value="${project.home}/build/lib/gant"/>
 
   <target name="cleanup">
 
   <target name="init">
     <mkdir dir="${out.dir}"/>
+    <mkdir dir="${tmp.dir}"/>
   </target>
 
   <macrodef name="call_gant">
     <attribute name="script" />
     <sequential>
-      <java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
-        <jvmarg line="-Xms64m -Xmx512m"/>
-        <jvmarg line="&quot;-Dgant.script=@{script}&quot;"/>
-
-        <classpath>
-          <fileset dir="${project.home}/lib/ant/lib">
-            <include name="*.jar"/>
-          </fileset>
-          <fileset dir="${gant.home}/lib">
-            <include name="*.jar"/>
-          </fileset>
-        </classpath>
+      <java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
+        <jvmarg line="-Xmx512m -XX:MaxPermSize=152m"/>
 
+        <arg line="&quot;-Dgant.script=@{script}&quot;"/>
+        <arg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>
+        <arg line="&quot;-Didea.test.group=ALL_EXCLUDE_DEFINED&quot;"/>
+        <arg line="-lib ${gant.home}/lib/"/>
         <arg value="-f"/>
         <arg value="${project.home}/build/gant.xml"/>
       </java>
@@ -37,5 +33,9 @@
     <call_gant script="${project.home}/build/scripts/dist.gant"/>
   </target>
 
+  <target name="test" depends="init">
+    <call_gant script="${project.home}/build/scripts/tests.gant"/>
+  </target>
+
   <target name="all" depends="cleanup,build"/>
 </project>