summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2013-09-06 15:47:55 -0700
committerSiva Velusamy <vsiva@google.com>2013-09-06 17:13:05 -0700
commit3ff7bb659a393df4d317648b823018e6ee4c8fb7 (patch)
treebb892f5483e097706ee2b8a6ccbd3d308ef5e89b /build.xml
parent205c644c725097cbdb6d0fac17729b77b2e5aaca (diff)
downloadidea-3ff7bb659a393df4d317648b823018e6ee4c8fb7.tar.gz
Build script: Allow customizing output folder
Change-Id: I0c998ae00f85866d14967564184cd2be1c346d87
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml15
1 files changed, 12 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index 10c840e37da7..bd672f91de08 100644
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,15 @@
<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"/>
+
+ <!--
+ Sets the out folder. Defaults to ${basedir}/out.
+ To override, use command line arg "out": e.g. -Dout=/path/
+ -->
+ <condition property="out.dir" value="${out}" else="${project.home}/out">
+ <isset property="out" />
+ </condition>
+
+ <property name="tmp.dir" value="${out.dir}/tmp"/>
<target name="cleanup">
<delete dir="${out.dir}" failonerror="false"/>
@@ -16,7 +24,8 @@
<attribute name="script" />
<sequential>
<java failonerror="true" jar="${project.home}/lib/ant/lib/ant-launcher.jar" fork="true">
- <jvmarg line="-Xmx512m -XX:MaxPermSize=152m"/>
+ <jvmarg line="-Xmx768m -XX:MaxPermSize=152m"/>
+ <jvmarg value="-Dout=${out.dir}" />
<arg line="&quot;-Dgant.script=@{script}&quot;"/>
<arg line="&quot;-Dteamcity.build.tempDir=${tmp.dir}&quot;"/>