This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (!CndPathUtilities.isPathAbsolute(output)) {
output = getBaseDir() + "/" + output; // NOI18N
output = CndPathUtilities.normalizeSlashes(output);
boolean isNetworkPath = output.startsWith("//");
output = CndPathUtilities.normalizeUnixPath(output);
if (isNetworkPath && !output.startsWith("//")) {
output = "/"+output; // NOI18N
}
return expandMacros(output);
// Then try absolute if relative or relative if absolute
String newPath;
if (CndPathUtilities.isPathAbsolute(path)) {
newPath = CndPathUtilities.toRelativePath(getBaseDir(), CndPathUtilities.naturalizeSlashes(path));
newPath = CndPathUtilities.toRelativePath(getBaseDir(), path);
} else {
newPath = CndPathUtilities.toAbsolutePath(getBaseDirFileObject(), path);
String absPrefix = null;
if (isPathAbsolute(path)) {
if (path.charAt(0) == '/') {
if (path.length() >= 2 && path.charAt(0) == '/' && path.charAt(1) == '/') {
absPrefix = "//"; // NOI18N
path = path.substring(2);
} else if (path.charAt(0) == '/') {
absPrefix = "/"; // NOI18N
path = path.substring(1);
} else if (path.charAt(1) == ':') {