summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 000000000000..a4d0df3a3172
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,41 @@
+<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">
+ <delete dir="${out.dir}" failonerror="false"/>
+ </target>
+
+ <target name="init">
+ <mkdir dir="${out.dir}"/>
+ <mkdir dir="${tmp.dir}"/>
+ </target>
+
+ <macrodef name="call_gant">
+ <attribute name="script" />
+ <sequential>
+ <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>
+ </sequential>
+ </macrodef>
+
+ <target name="build" depends="init">
+ <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>