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.

View | Details | Raw Unified | Return to bug 40892
Collapse All | Expand All

(-)ImportTask.java~ (-9 / +1 lines)
Lines 134-140 Link Here
134
            }
134
            }
135
        }
135
        }
136
136
137
        importedFile = new File(getPath(importedFile));
137
        importedFile = new File(importedFile.getAbsolutePath());
138
138
139
        if (importStack.contains(importedFile)) {
139
        if (importStack.contains(importedFile)) {
140
            getProject().log(
140
            getProject().log(
Lines 150-161 Link Here
150
                ex, getLocation());
150
                ex, getLocation());
151
        }
151
        }
152
    }
152
    }
153
154
    private static String getPath(File file) {
155
        try {
156
            return file.getCanonicalPath();
157
        } catch (IOException e) {
158
            return file.getAbsolutePath();
159
        }
160
    }
161
}
153
}

Return to bug 40892