[Swift-commit] r7956 - trunk/src/org/griphyn/vdl/karajan
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Fri Jul 4 01:41:18 CDT 2014
Author: hategan
Date: 2014-07-04 01:41:17 -0500 (Fri, 04 Jul 2014)
New Revision: 7956
Modified:
trunk/src/org/griphyn/vdl/karajan/Loader.java
Log:
added back ability to run .kml files with the swift command
Modified: trunk/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/Loader.java 2014-07-04 06:38:29 UTC (rev 7955)
+++ trunk/src/org/griphyn/vdl/karajan/Loader.java 2014-07-04 06:41:17 UTC (rev 7956)
@@ -154,6 +154,18 @@
}
tree = load(project);
}
+ else if (project.endsWith(".kml")) {
+ try {
+ tree = load(project);
+ }
+ catch (Exception pe) {
+ // the compiler should have already logged useful
+ // error messages, so this log line is just for
+ // debugging
+ logger.debug("Exception when compiling " + project, pe);
+ System.exit(3);
+ }
+ }
else if (source != null) {
try {
String kml = compileString(source, provenanceEnabled);
More information about the Swift-commit
mailing list