pack compiler into one jar (without js yet)

This commit is contained in:
Leonid Shalupov
2012-04-29 19:30:43 +04:00
parent c484e37b02
commit 4cd2ce81a9
6 changed files with 112 additions and 17 deletions
+37 -9
View File
@@ -1,24 +1,44 @@
<project name="Update Dependencies" default="update">
<property name="build.zip" value="ideaIC-117.SNAPSHOT.win.zip"/>
<target name="update">
<target name="update" depends="fetch-third-party">
<execute_update/>
</target>
<target name="jb_update">
<target name="jb_update" depends="fetch-third-party">
<execute_update teamcity="http://buildserver.labs.intellij.net" teamcity.build="bt2560"/>
</target>
<target name="fetch-third-party">
<mkdir dir="dependencies" />
<mkdir dir="dependencies/download" />
<!-- ProGuard -->
<get src="http://heanet.dl.sourceforge.net/project/proguard/proguard%20beta/4.8beta/proguard4.8beta1.zip" dest="dependencies/download/" usetimestamp="true"/>
<delete file="dependencies/proguard.jar" failonerror="false"/>
<unzip src="dependencies/download/proguard4.8beta1.zip" dest="dependencies">
<patternset>
<include name="proguard4.8beta1/lib/proguard.jar"/>
</patternset>
<mapper type="flatten"/>
</unzip>
<!-- JarJar -->
<get src="http://jarjar.googlecode.com/files/jarjar-1.2.jar" dest="dependencies/download/" usetimestamp="true"/>
<copy file="dependencies/download/jarjar-1.2.jar" tofile="dependencies/jarjar.jar" overwrite="true" />
<!-- PluginVerifier -->
<get src="http://teamcity.jetbrains.com/guestAuth/repository/download/bt351/.lastPinned/plugin-verifier-1.0-SNAPSHOT.jar"
dest="dependencies/download/"/>
<copy file="dependencies/download/plugin-verifier-1.0-SNAPSHOT.jar" tofile="dependencies/plugin-verifier.jar" overwrite="true" />
</target>
<macrodef name="execute_update">
<attribute name="teamcity" default="http://teamcity.jetbrains.com"/>
<attribute name="teamcity.build" default="bt365"/> <!-- IDEA CE 11.1 branch 117 -->
<attribute name="teamcity.build" default="bt365"/>
<!-- IDEA CE 11.1 branch 117 -->
<sequential>
<delete dir="PluginVerifier" failonerror="false" />
<delete file="PluginVerifier" failonerror="false" />
<mkdir dir="PluginVerifier" />
<get src="http://teamcity.jetbrains.com/guestAuth/repository/download/bt351/.lastPinned/plugin-verifier-1.0-SNAPSHOT.jar" dest="PluginVerifier"/>
<property name="core" value="ideaSDK/core"/>
<property name="tc" value="@{teamcity}/guestAuth/repository/download/@{teamcity.build}/.lastSuccessful"/>
@@ -40,8 +60,16 @@
<unzip src="ideaSDK/${build.zip}" dest="ideaSDK"/>
<delete file="ideaSDK/${build.zip}"/>
<copy file="ideaSDK/lib/jdom.jar" todir="${core}"/>
<copy file="ideaSDK/lib/jna.jar" todir="${core}"/>
<copy file="ideaSDK/lib/log4j.jar" todir="${core}"/>
<copy file="ideaSDK/lib/xstream.jar" todir="${core}"/>
<copy file="ideaSDK/lib/xpp3-1.1.4-min.jar" todir="${core}"/>
<!--<copy file="lib/jsr305-1.3.9.jar" todir="${core}"/>-->
<!-- TODO temporary workaround since util-rt is not packaged into intellij-core.jar -->
<copy file="ideaSDK/lib/util.jar" todir="${core}"/>
<!--
This one needs to be deleted because otherwise it gets onto the classpath
together with junit-4.10.jar and the classloading goes crazy that breaks