mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
2213: ant 1.9.7 passes correct UNC format to Junit, but lower version has problems
This commit is contained in:
parent
bda2aea568
commit
9be751bd9b
@ -91,7 +91,10 @@ public class RegressionTest extends TestCase {
|
|||||||
* @return escaped path the the file/directory location.
|
* @return escaped path the the file/directory location.
|
||||||
*/
|
*/
|
||||||
private static String getEscapedPath(String path) {
|
private static String getEscapedPath(String path) {
|
||||||
if (path.startsWith("\\")) {
|
if (path.startsWith("\\\\")) { //already has escaped to \\\\NetworkLocation
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
else if (path.startsWith("\\")) {
|
||||||
return "\\" + path;
|
return "\\" + path;
|
||||||
} else {
|
} else {
|
||||||
return path;
|
return path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user