Minor: report error instead of crash with exceptions when collect JetFiles to compile and remove obsolete (wrong now) code

#EA-61681 Obsolete
This commit is contained in:
Zalim Bashorov
2015-09-10 22:32:24 +03:00
parent 909cbc6817
commit 1b00eb3a17
9 changed files with 43 additions and 8 deletions
@@ -0,0 +1,2 @@
-module
$TESTDATA_DIR$/nonexistentPathInModule.xml
+3
View File
@@ -0,0 +1,3 @@
error: source file or directory not found: $TESTDATA_DIR$/nonexistentFile.kt
error: source file or directory not found: $TESTDATA_DIR$/some/nonexistent/dir
COMPILATION_ERROR
+6
View File
@@ -0,0 +1,6 @@
<modules>
<module name="name" outputDir="whatever" type="java-production">
<sources path="nonexistentFile.kt"/>
<sources path="some/nonexistent/dir/"/>
</module>
</modules>
+2
View File
@@ -0,0 +1,2 @@
-script
path/to/nonexistent.kts
+2
View File
@@ -0,0 +1,2 @@
error: source file or directory not found: path/to/nonexistent.kts
COMPILATION_ERROR