Fixing the behavior for non-physical JetFiles (e.g. the ones created by WebDemo)

This commit is contained in:
Andrey Breslav
2012-03-15 14:04:11 +04:00
parent 7137872ede
commit 562893f83e
@@ -147,7 +147,8 @@ public class GenerationState {
for (JetFile file : files) {
if (file == null) throw new IllegalArgumentException("A null file given for compilation");
VirtualFile vFile = file.getVirtualFile();
progress.log("For source: " + vFile.getPath());
String path = vFile != null ? vFile.getPath() : "no_virtual_file/" + file.getName();
progress.log("For source: " + path);
try {
generateNamespace(file);
}