代码拉取完成,页面将自动刷新
<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/28547/kotlin-plugin-1.0.4-release-IJ2016.1-112.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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。