/** * Nightmares can result from using a path with a space in it! * This method will enclose in double-quotes if needed. * @param path * @return */ public static String quotePathIfNecessary(String path) { return quotePathIfNecessary(path, '"'); } /**
/** * Nightmares can result from using a path with a space in it! * This method will enclose in double-quotes if needed. * @param path * @return */ public static String quotePathIfNecessary(String path) { return quotePathIfNecessary(path, '"'); } /**
private String quote(String s) { return StringUtils.quotePathIfNecessary(s); }
command.add(StringUtils.quotePathIfNecessary(nodeDir));