提交 5fc866c4 编写于 作者: L lana

Merge

...@@ -30,6 +30,7 @@ import com.sun.tools.internal.xjc.BadCommandLineException; ...@@ -30,6 +30,7 @@ import com.sun.tools.internal.xjc.BadCommandLineException;
import com.sun.xml.internal.bind.util.Which; import com.sun.xml.internal.bind.util.Which;
import javax.lang.model.SourceVersion; import javax.lang.model.SourceVersion;
import javax.tools.Diagnostic;
import javax.tools.DiagnosticCollector; import javax.tools.DiagnosticCollector;
import javax.tools.JavaCompiler; import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject; import javax.tools.JavaFileObject;
...@@ -248,7 +249,12 @@ public class SchemaGenerator { ...@@ -248,7 +249,12 @@ public class SchemaGenerator {
if (episode != null) if (episode != null)
r.setEpisodeFile(episode); r.setEpisodeFile(episode);
task.setProcessors(Collections.singleton(r)); task.setProcessors(Collections.singleton(r));
return task.call(); boolean res = task.call();
//Print messages generated by compiler
for (Diagnostic<? extends JavaFileObject> d : diagnostics.getDiagnostics()) {
System.err.println(d.toString());
}
return res;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册