public static void dubRemovePath(Path packageRootDir) {
String packageRootDirStr = packageRootDir.toString();
System.out.println(":::: Removing DUB package root path: " + packageRootDirStr);
try {
ExternalProcessHelper processHelper;
processHelper = startDubProcess(null, "remove-path", packageRootDirStr);
processHelper.strictAwaitTermination(2000);
assertTrue(processHelper.getProcess().exitValue() == 0);
} catch (TimeoutException | InterruptedException | IOException e) {
throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
}
}