- translationCollector.add(
- content,
- new String(unit.compilationResult.fileName)
- .substring(translationCollector.base
- .getAbsolutePath().length() + 1)
- + ":" + lineNumber);
+ File f0 = new File(new String(unit.compilationResult.fileName))
+ .getAbsoluteFile();
+ File f2 = translationCollector.base.getAbsoluteFile();
+ try {
+ translationCollector.add(content, f0.getCanonicalPath()
+ .substring(f2.getCanonicalPath().length() + 1)
+ + ":"
+ + lineNumber);
+ } catch (IOException e1) {
+ e1.printStackTrace();
+ }