Skip to content

Commit 55a21ec

Browse files
author
zhenlineo
committed
Add back the option of allowing user to specify neo4j downaload link
1 parent 5bb4a35 commit 55a21ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

driver/src/test/java/org/neo4j/driver/util/Neo4jInstaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static boolean isWindows()
4444
}
4545
}
4646

47-
static final String version = "3.0.0-M01-NIGHTLY";
47+
static final String version = System.getProperty( "version", "3.0.0-M01-NIGHTLY" );
4848

4949
private static final File neo4jDir = new File( "./target/neo4j" );
5050

driver/src/test/java/org/neo4j/driver/util/Neo4jWindowsInstaller.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import java.io.File;
2525
import java.io.IOException;
26+
import java.net.URI;
2627

2728
import static java.lang.String.format;
2829

@@ -65,7 +66,8 @@ public int stopNeo4j() throws IOException
6566
@Override
6667
String neo4jPackageUrl()
6768
{
68-
return winPackageUrl;
69+
String url = System.getProperty( "packageUri", winPackageUrl );
70+
return URI.create( url ).toString();
6971
}
7072

7173
@Override

0 commit comments

Comments
 (0)