mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
assertion
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ abstract class CompilationEvent {
|
||||
@Override
|
||||
protected void process(OutputParser.Callback callback) {
|
||||
showProgressFor("Writing ", uri, callback);
|
||||
File file = new File(uri);
|
||||
File file = new File(uri.getPath());
|
||||
callback.fileGenerated(new FileObject(file,bytes));
|
||||
}
|
||||
@Override
|
||||
@@ -63,7 +63,7 @@ abstract class CompilationEvent {
|
||||
else {
|
||||
URI uri = fileObject.toUri();
|
||||
if (uri.getScheme().equals("file")) {
|
||||
url = VfsUtil.pathToUrl(FileUtil.toSystemIndependentName(new File(uri).getPath()));
|
||||
url = VfsUtil.pathToUrl(FileUtil.toSystemIndependentName(uri.getPath()));
|
||||
}
|
||||
else {
|
||||
url = fileObject.toString();
|
||||
|
||||
Reference in New Issue
Block a user