Spring Support: Test framework

This commit is contained in:
Alexey Sedunov
2016-03-18 13:00:30 +03:00
parent d8a033e8a5
commit 161d11d9ec
5 changed files with 160 additions and 14 deletions
+25 -5
View File
@@ -135,7 +135,21 @@
<move file="dependencies/apache-ant-@{version}" tofile="dependencies/@{folderName}"/>
</sequential>
</macrodef>
<macrodef name="get-spring-library">
<attribute name="lib"/>
<attribute name="version"/>
<sequential>
<get-maven-library
server="http://central.maven.org/maven2"
prefix="org/springframework"
lib="@{lib}"
version="@{version}"
src="false"
dependencies="idea/testData/spring/_lib/spring/@{version}"/>
</sequential>
</macrodef>
<target name="make-native-platform-uberjar">
<property name="dependencies" value="dependencies"/>
<property name="download" value="${dependencies}/download"/>
@@ -143,7 +157,7 @@
<property name="version" value="${native-platform-lib-version}"/>
<property name="common.name" value="native-platform"/>
<property name="common.prefix" value="${server}/net/rubygrapefruit/${common.name}"/>
<macrodef name="get-lib">
<attribute name="suffix"/>
<sequential>
@@ -153,7 +167,7 @@
<mkdir dir="${dependencies}"/>
<mkdir dir="${download}"/>
<get-lib suffix=""/>
<get-lib suffix="-windows-amd64"/>
<get-lib suffix="-windows-i386"/>
@@ -175,9 +189,9 @@
<zipfileset src="${download}/${common.name}-freebsd-amd64.jar" includes="**" />
<zipfileset src="${download}/${common.name}-freebsd-i386.jar" includes="**" />
</jar>
</target>
<target name="fetch-third-party" depends="make-native-platform-uberjar">
<mkdir dir="dependencies"/>
<mkdir dir="dependencies/download"/>
@@ -320,6 +334,12 @@
<antcall target="override-version"/>
<download-or-build-markdown-parser/>
<sequential if:set="use.ultimate.by.default">
<get-spring-library lib="spring-core" version="4.2.0.RELEASE"/>
<get-spring-library lib="spring-beans" version="4.2.0.RELEASE"/>
<get-spring-library lib="spring-context" version="4.2.0.RELEASE"/>
</sequential>
</target>
<macrodef name="get_android_sdk">