@ -313,17 +313,19 @@ if(NOT EXISTS ${JAVA_TEST_LIBDIR})
file ( MAKE_DIRECTORY mkdir ${ JAVA_TEST_LIBDIR } )
endif ( )
if ( DEFINED CUSTOM_REPO_URL )
set ( SEARCH_REPO_URL ${ CUSTOM_REPO_URL } / )
set ( CENTRAL_REPO_URL ${ CUSTOM_REPO_URL } / )
if ( DEFINED CUSTOM_DEPS_URL )
set ( DEPS_URL ${ CUSTOM_DEPS_URL } / )
else ( )
set ( SEARCH_REPO_URL "http://search.maven.org/remotecontent?filepath=" )
set ( CENTRAL_REPO_URL "https://repo1.maven.org/maven2/" )
# T h i s i s a U R L f o r a r t i f a c t s f r o m a " f a k e " r e l e a s e o n p d i l l i n g e r ' s f o r k ,
# s o a s n o t t o p u t b i n a r i e s i n git ( ew ) . W e s h o u l d m o v e t o h o s t i n g t h e s e
# u n d e r t h e f a c e b o o k a c c o u n t o n g i t h u b , o r s o m e t h i n g e l s e m o r e r e l i a b l e
# t h a n m a v e n . o r g , w h i c h h a s b e e n f a i l i n g f r e q u e n t l y f r o m T r a v i s .
set ( DEPS_URL "https://github.com/pdillinger/rocksdb/releases/download/v6.6.x-java-deps" )
endif ( )
if ( NOT EXISTS ${ JAVA_JUNIT_JAR } )
message ( "Downloading ${JAVA_JUNIT_JAR}" )
file ( DOWNLOAD ${ SEARCH_REPO _URL} junit/junit/4.12 /junit-4.12.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
file ( DOWNLOAD ${ DEPS _URL} /junit-4.12.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
list ( GET downloadStatus 0 error_code )
if ( NOT error_code EQUAL 0 )
message ( FATAL_ERROR "Failed downloading ${JAVA_JUNIT_JAR}" )
@ -332,7 +334,7 @@ if(NOT EXISTS ${JAVA_JUNIT_JAR})
endif ( )
if ( NOT EXISTS ${ JAVA_HAMCR_JAR } )
message ( "Downloading ${JAVA_HAMCR_JAR}" )
file ( DOWNLOAD ${ SEARCH_REPO _URL} org/hamcrest/hamcrest-core/1.3 /hamcrest-core-1.3.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
file ( DOWNLOAD ${ DEPS _URL} /hamcrest-core-1.3.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
list ( GET downloadStatus 0 error_code )
if ( NOT error_code EQUAL 0 )
message ( FATAL_ERROR "Failed downloading ${JAVA_HAMCR_JAR}" )
@ -341,7 +343,7 @@ if(NOT EXISTS ${JAVA_HAMCR_JAR})
endif ( )
if ( NOT EXISTS ${ JAVA_MOCKITO_JAR } )
message ( "Downloading ${JAVA_MOCKITO_JAR}" )
file ( DOWNLOAD ${ SEARCH_REPO _URL} org/mockito/mockito-all/1.10.19 /mockito-all-1.10.19.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
file ( DOWNLOAD ${ DEPS _URL} /mockito-all-1.10.19.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
list ( GET downloadStatus 0 error_code )
if ( NOT error_code EQUAL 0 )
message ( FATAL_ERROR "Failed downloading ${JAVA_MOCKITO_JAR}" )
@ -350,7 +352,7 @@ if(NOT EXISTS ${JAVA_MOCKITO_JAR})
endif ( )
if ( NOT EXISTS ${ JAVA_CGLIB_JAR } )
message ( "Downloading ${JAVA_CGLIB_JAR}" )
file ( DOWNLOAD ${ SEARCH_REPO _URL} cglib/cglib/2.2.2 /cglib-2.2.2.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
file ( DOWNLOAD ${ DEPS _URL} /cglib-2.2.2.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
list ( GET downloadStatus 0 error_code )
if ( NOT error_code EQUAL 0 )
message ( FATAL_ERROR "Failed downloading ${JAVA_CGLIB_JAR}" )
@ -359,7 +361,7 @@ if(NOT EXISTS ${JAVA_CGLIB_JAR})
endif ( )
if ( NOT EXISTS ${ JAVA_ASSERTJ_JAR } )
message ( "Downloading ${JAVA_ASSERTJ_JAR}" )
file ( DOWNLOAD ${ CENTRAL_REPO _URL} org/assertj/assertj-core/1.7.1 /assertj-core-1.7.1.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
file ( DOWNLOAD ${ DEPS _URL} /assertj-core-1.7.1.jar ${ JAVA_TMP_JAR } STATUS downloadStatus )
list ( GET downloadStatus 0 error_code )
if ( NOT error_code EQUAL 0 )
message ( FATAL_ERROR "Failed downloading ${JAVA_ASSERTJ_JAR}" )