two phase build

This commit is contained in:
Dmitry Jemerov
2008-02-27 21:01:15 +03:00
parent 69807b321d
commit 231b169a8a
2 changed files with 39 additions and 9 deletions
+6 -9
View File
@@ -5,20 +5,17 @@
<property name="platform.dir" value="${out.dir}/platform/platform15"/>
<property name="idea.dir" value="${out.dir}/idea"/>
<target name="release" depends="unzip,compile,jar,zip"/>
<target name="release" depends="compile,jar,zip"/>
<target name="init">
<tstamp/>
</target>
<target name="unzip">
<unzip dest="${idea.dir}/jdk15">
<fileset dir="${idea.dir}" includes="idea*-jdk15.zip"/>
</unzip>
</target>
<taskdef name="javac2" classname="com.intellij.ant.Javac2">
<classpath path="${basedir}/javac2.jar"/>
<classpath path="${idea.dir}/jdk15/lib/javac2.jar"/>
<classpath path="${idea.dir}/jdk15/lib/asm.jar"/>
<classpath path="${idea.dir}/jdk15/lib/asm-commons.jar"/>
<classpath path="${idea.dir}/jdk15/lib/jdom.jar"/>
</taskdef>
<fileset id="idea.libraries" dir="${idea.dir}/jdk15/lib">
@@ -121,7 +118,7 @@
<replace file="${classes.dir}/idea/PythonApplicationInfo.xml" token="__BUILD_DATE__" value="${DSTAMP}"/>
</target>
<target name="jar" depends="compile,unzip">
<target name="jar" depends="compile">
<mkdir dir="${out.dir}/jar"/>
<mkdir dir="${out.dir}/deploy"/>
<unzip src="${platform.dir}/platform.jar" dest="${out.dir}/jar"/>
+33
View File
@@ -0,0 +1,33 @@
<project name="Python IDE Release Build Bootstrap" default="main">
<property name="project.home" value="${basedir}/../../.."/>
<property name="idea.dir" value="${project.home}/out/python/idea"/>
<target name="unzip">
<unzip dest="${idea.dir}/jdk15">
<fileset dir="${idea.dir}" includes="idea*-jdk15.zip"/>
</unzip>
</target>
<target name="main" depends="unzip">
<java failonerror="true" classname="org.apache.tools.ant.Main" fork="true">
<jvmarg line="-Xms64m -Xmx512m"/>
<jvmarg line="-Dbuild.number=${build.number}"/>
<classpath>
<fileset dir="${project.home}/build/lib">
<include name="antlayout.jar"/>
<include name="commons-net-1.4.1.jar"/>
<include name="jsch-0.1.28.jar"/>
</fileset>
<fileset dir="${project.home}/lib/ant/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<arg value="-f"/>
<arg value="release.xml"/>
<arg value="-verbose"/>
</java>
</target>
</project>