Skip to content

Commit 23d7ae8

Browse files
committed
Use file.getCanonicalPath()
- to make console look better on Windows
1 parent 08b6b2d commit 23d7ae8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/data/DataManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ private Node parsePdscFile(File file, DurationMonitor dm) {
665665

666666
try {
667667

668-
fOut.println("Parsing PDSC file \"" + file.getPath() + "\"...");
668+
fOut.println("Parsing PDSC file \"" + file.getCanonicalPath() + "\"...");
669669
Document document = Xml.parseFile(file);
670670

671671
PdscGenericParser parser = new PdscGenericParser();
@@ -692,7 +692,7 @@ private Node parseXcdlFile(File file, DurationMonitor dm) {
692692

693693
FileReader reader;
694694
try {
695-
fOut.println("Parsing XCDL file \"" + file.getPath() + "\"...");
695+
fOut.println("Parsing XCDL file \"" + file.getCanonicalPath() + "\"...");
696696

697697
JSONParser parser = new JSONParser();
698698
reader = new FileReader(file);
@@ -1306,7 +1306,7 @@ public boolean isLeaf(Leaf node) {
13061306
*/
13071307
private Node loadCachedInstalledObjectsForBuild(File file) {
13081308

1309-
fOut.println("Parsing cached file \"" + file.getPath() + "\".");
1309+
fOut.println("Parsing cached file \"" + file.getCanonicalPath() + "\".");
13101310

13111311
Node node = null;
13121312
try {

bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/data/Repos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private Node parseContentFile(File file) throws IOException, ParserConfiguration
394394

395395
long beginTime = System.currentTimeMillis();
396396

397-
fOut.println("Parsing cached content file \"" + file.getPath() + "\"...");
397+
fOut.println("Parsing cached content file \"" + file.getCanonicalPath() + "\"...");
398398

399399
if (!file.exists()) {
400400
throw new IOException("File does not exist, ignored.");

bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/data/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static void copyFile(URL sourceUrl, File destinationFile, MessageConsoleS
156156
input.close();
157157

158158
if (out != null) {
159-
String s = destinationFile.getPath();
159+
String s = destinationFile.getCanonicalPath();
160160
if (s.endsWith(".download")) {
161161
s = s.substring(0, s.length() - ".download".length());
162162
}

bundles/ilg.gnumcueclipse.packs.ui/src/ilg/gnumcueclipse/packs/ui/handlers/UpdatePacksHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private void aggregateCmsis(Map<String, Object> repo) {
364364

365365
File file;
366366
file = PacksStorage.getFileObject(fileName);
367-
fOut.println("File \"" + file.getPath() + "\" written.");
367+
fOut.println("File \"" + file.getCanonicalPath() + "\" written.");
368368
fOut.println();
369369

370370
} catch (IOException e) {

0 commit comments

Comments
 (0)