Run CE build script same way as a build server (fix missing javac error)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 18 Jul 2011 17:16:08 +0000 (19:16 +0200)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Mon, 18 Jul 2011 17:16:38 +0000 (19:16 +0200)
build.xml

index fa2c7bd0ee2385de81360d5f5322e7b9aeaf908b..a4d0df3a3172dfe0b031f9a089a4d1debe248469 100644 (file)
--- a/build.xml
+++ b/build.xml
   <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;"/>
-        <jvmarg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>
-        <jvmarg line="&quot;-Didea.test.group=ALL_EXCLUDE_DEFINED&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>