forked from Kotlin/anko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_dependencies.xml
53 lines (37 loc) · 2.17 KB
/
update_dependencies.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<project name="Update Dependencies" default="update">
<target name="update">
<mkdir dir="dependencies/download"/>
<get src="http://repo1.maven.org/maven2/org/ow2/asm/asm-debug-all/4.2/asm-debug-all-4.2.jar"
dest="dependencies/asm-4.2.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar"
dest="dependencies/junit-4.11.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar"
dest="dependencies/hamcrest-all-1.3.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=org/json/json/20080701/json-20080701.jar"
dest="dependencies/json-20080701.jar" usetimestamp="true"/>
<get src="https://plugins.jetbrains.com/files/6954/33480/kotlin-plugin-1.1.1-release-Studio2.4-1.zip"
dest="dependencies/kotlin-plugin.zip" usetimestamp="true"/>
<get src="http://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar"
dest="dependencies/ant-contrib.jar" usetimestamp="true"/>
<delete dir="dependencies/kotlin-plugin" failonerror="false"/>
<unzip src="dependencies/kotlin-plugin.zip"
dest="dependencies/"/>
<set_unix_perms />
<ant antfile="update_dependencies_idea.xml" target="update"/>
<rename src="ideaSDK/lib/kotlin-runtime.jar" dest="kotlin-runtime.jar.bak"/>
<rename src="ideaSDK/lib/kotlin-reflect.jar" dest="kotlin-reflect.jar.bak"/>
<copydir src="dependencies/Kotlin" dest="ideaSDK/plugins/Kotlin" forceoverwrite="true"/>
</target>
<macrodef name="set_unix_perms">
<sequential>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="dependencies/ant-contrib.jar"/>
<if>
<equals arg1="${os.tag}" arg2="win.zip"/>
<then />
<else>
<chmod dir="dependencies/Kotlin/kotlinc/bin" perm="+x" includes="**/*"/>
</else>
</if>
</sequential>
</macrodef>
</project>