| <project name="Update Ultimate Dependencies" default="update"> |
| <dirname file="${basedir}" property="main.project.dir"/> |
| |
| <property name="use.ultimate.by.default" value="true"/> |
| <property name="dependencies" value="${main.project.dir}/dependencies"/> |
| <property name="generators" value="${main.project.dir}/generators"/> |
| |
| <import file="${main.project.dir}/update_dependencies.xml" as="main"/> |
| |
| <property name="download" value="dependencies/download"/> |
| |
| <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" |
| download="${download}" |
| dependencies="dependencies/spring/@{version}"/> |
| </sequential> |
| </macrodef> |
| |
| <macrodef name="get-nodejs-intellij-plugin"> |
| <sequential> |
| <get src="http://plugins.jetbrains.com/plugin/download?updateId=37668" dest="${download}/nodejs_plugin.zip" usetimestamp="true"/> |
| <unzip src="${download}/nodejs_plugin.zip" dest="dependencies/nodejs_plugin" overwrite="true"/> |
| </sequential> |
| </macrodef> |
| |
| <target name="fetch-extras"> |
| <mkdir dir="${download}"/> |
| |
| <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"/> |
| <get-spring-library lib="spring-tx" version="4.2.0.RELEASE"/> |
| <get-spring-library lib="spring-web" version="4.2.0.RELEASE"/> |
| |
| <get-nodejs-intellij-plugin/> |
| </target> |
| |
| <!-- Override fetch-third-party from the main buildfile --> |
| <target name="fetch-third-party" depends="main.make-dependency-dirs,fetch-extras"/> |
| </project> |