void (OrderEnumerator enumerator) { PathsList pathsList = new PathsList(); enumerator.runtimeOnly().withoutSdk().roots(NativeLibraryOrderRootType.getInstance()).collectPaths(pathsList); if (!pathsList.getPathList().isEmpty()) { ParametersList vmParameters = getVMParametersList(); if (vmParameters.hasProperty(JAVA_LIBRARY_PATH_PROPERTY)) { LOG.info(JAVA_LIBRARY_PATH_PROPERTY + " property is already specified, " + "native library paths from dependencies (" + pathsList.getPathsString() + ") won't be added"); } else { vmParameters.addProperty(JAVA_LIBRARY_PATH_PROPERTY, pathsList.getPathsString()); } } }