Skip to content

Commit 9ca2ad5

Browse files
committed
Fix the dependency path order when executing tests
Several times had build failures due to having older product installed and so having conflicting dependencies in the path Dependencies should be taken in preference, so putting them first in the path
1 parent e8ff528 commit 9ca2ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/maven_nar/NarUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static String addLibraryPathToEnv(final String path, final Map environmen
109109
String libPath = path;
110110
libPath = libPath.replace(File.pathSeparatorChar, separator);
111111
if (value != null) {
112-
value += separator + libPath;
112+
value = libPath + separator + value; // items under test first on path
113113
} else {
114114
value = libPath;
115115
}

0 commit comments

Comments
 (0)