Files
kotlin-fork/update_dependencies.xml
T
2012-03-02 18:18:21 +04:00

52 lines
2.3 KiB
XML

<project name="Update Dependencies" default="update">
<property name="build.zip" value="ideaIC-116.SNAPSHOT.win.zip"/>
<target name="update">
<execute_update/>
</target>
<target name="jb_update">
<execute_update teamcity="http://buildserver.labs.intellij.net" teamcity.build="bt662"/>
</target>
<macrodef name="execute_update">
<attribute name="teamcity" default="http://teamcity.jetbrains.com"/>
<attribute name="teamcity.build" default="bt343"/>
<sequential>
<delete dir="PluginVerifier" failonerror="false" />
<get src="http://teamcity.jetbrains.com/guestAuth/repository/download/bt351/.lastSuccessful/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"/>
<delete dir="ideaSDK" failonerror="false">
<exclude name="config/**"/>
<exclude name="system/**"/>
</delete>
<mkdir dir="${core}"/>
<get src="${tc}/core/intellij-core.jar" dest="${core}"/>
<get src="${tc}/core/annotations.jar" dest="${core}"/>
<get src="${tc}/core/asm.jar" dest="${core}"/>
<get src="${tc}/core/asm-commons.jar" dest="${core}"/>
<get src="${tc}/core/cli-10.jar" dest="${core}"/>
<get src="${tc}/core/guava-11.0.1.jar" dest="${core}"/>
<get src="${tc}/core/picocontainer.jar" dest="${core}"/>
<get src="${tc}/core/trove4j.jar" dest="${core}"/>
<get src="${tc}/${build.zip}" dest="ideaSDK" />
<unzip src="ideaSDK/${build.zip}" dest="ideaSDK"/>
<delete file="ideaSDK/${build.zip}"/>
<!--
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
many nice features of IDEA including diffs in the test console.
-->
<delete file="ideaSDK/lib/junit.jar"/>
<mkdir dir="ideaSDK/sources"/>
<get src="${tc}/sources.zip" dest="ideaSDK/sources"/>
</sequential>
</macrodef>
</project>