single buld.xml for community installer
authorMaxim Shafirov <max@jetbrains.com>
Fri, 9 Oct 2009 14:48:18 +0000 (18:48 +0400)
committerMaxim Shafirov <max@jetbrains.com>
Fri, 9 Oct 2009 14:49:04 +0000 (18:49 +0400)
build.xml [new file with mode: 0644]
build/scripts/dist.gant

diff --git a/build.xml b/build.xml
new file mode 100644 (file)
index 0000000..a3ccb87
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,42 @@
+<project name="IntelliJ IDEA Community Edition" default="all">
+  <property name="project.home" value="${basedir}"/>
+  <property name="out.dir" value="${project.home}/out"/>
+  <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}"/>
+  </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>
+          <pathelement location="${project.home}/build/lib/gant_patches.jar"/>
+          <fileset dir="${gant.home}/lib">
+            <include name="*.jar"/>
+          </fileset>
+        </classpath>
+
+        <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="all" depends="cleanup,build"/>
+</project>
index 5f28d29af106670bcb47d7a067d5db08f0968bdc..e04fa979b7c9a1fa50ce878beccd0407b3ec76c0 100644 (file)
@@ -67,7 +67,7 @@ def wire_build_date(String buildNumber) {
 target('default': 'The default target') {
   depends(compile)
   layoutAll(
-          buildNumber: "IC-SNAPSHOT",
+          buildNumber: "IC-90.SNAPSHOT",
           version: "MaiaCE",
           system_selector: "IntelliJIdeaCE90",
           vmoptions: "-Xms32m -Xmx256m -XX:MaxPermSize=150m -ea",