Skip to content

Commit fe94428

Browse files
committed
Do not validate libs location if not provided. Fixes btraceio#347
1 parent 040424c commit fe94428

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/share/classes/com/sun/btrace/agent

src/share/classes/com/sun/btrace/agent/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ private static void addPreconfLibs(String libs) {
534534
if (Files.exists(libFolder)) {
535535
appendToBootClassPath(libFolder);
536536
appendToSysClassPath(libFolder);
537-
} else {
537+
} else if (libs != null) {
538+
// for user provided libs config report error if the location does not exist
538539
DebugSupport.warning("Invalid 'libs' configuration [" + libs + "]. " +
539540
"Path '" + libFolder.toAbsolutePath().toString() + "' does not exist.");
540541
}

0 commit comments

Comments
 (0)