Skip to content
Browse files

Let offline try to work with already downloaded mvn.

Change-Id: I7d41ef0e1781fc1c1f3b3ca01cf07edf5b3d3639
Reviewed-on: http://review.couchbase.org/17667
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent d7139e7 commit 4fd6985e3cc2a59909fb5d0dc6a3107ea634cbd7 @ingenthr ingenthr committed with ingenthr
Showing with 6 additions and 5 deletions.
  1. +6 −5 build.xml
View
11 build.xml
@@ -436,16 +436,17 @@
Section: Maven Support
====================================== -->
- <target name="mvn-prep" depends="ivy-init, gen-version"
+ <target name="mvn-download" unless="offline">
+ <mkdir dir="${build.dir}" />
+ <get src="${mvn_repo_url}" dest="${mvn.jar}" usetimestamp="true" />
+ </target>
+
+ <target name="mvn-prep" depends="ivy-init, gen-version, mvn-download"
description="Creates maven files">
<!-- prepare for mvn tasks. -->
<property name="spymemcached.pom" value="${mvn.build.dir}/poms/spymemcached-${version}.pom" />
<property name="spymemcached-test.pom" value="${mvn.build.dir}/poms/spymemcached-test-${version}.pom" />
- <!-- Download maven -->
- <mkdir dir="${build.dir}" />
- <get src="${mvn_repo_url}" dest="${mvn.jar}" usetimestamp="true" />
-
<!-- Register mvn tasks -->
<path id="mvn-ant-task.classpath" path="${mvn.jar}" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"

0 comments on commit 4fd6985

Please sign in to comment.
Something went wrong with that request. Please try again.