aboutsummaryrefslogtreecommitdiff
path: root/javadoc/src/main/kotlin/reporter.kt
diff options
context:
space:
mode:
Diffstat (limited to 'javadoc/src/main/kotlin/reporter.kt')
-rw-r--r--javadoc/src/main/kotlin/reporter.kt30
1 files changed, 30 insertions, 0 deletions
diff --git a/javadoc/src/main/kotlin/reporter.kt b/javadoc/src/main/kotlin/reporter.kt
new file mode 100644
index 00000000..ce80ec7b
--- /dev/null
+++ b/javadoc/src/main/kotlin/reporter.kt
@@ -0,0 +1,30 @@
+package org.jetbrains.dokka.javadoc
+
+import com.sun.javadoc.DocErrorReporter
+import com.sun.javadoc.SourcePosition
+
+object StandardReporter : DocErrorReporter {
+ override fun printWarning(msg: String?) {
+ System.err?.println("[WARN] $msg")
+ }
+
+ override fun printWarning(pos: SourcePosition?, msg: String?) {
+ System.err?.println("[WARN] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
+ }
+
+ override fun printError(msg: String?) {
+ System.err?.println("[ERROR] $msg")
+ }
+
+ override fun printError(pos: SourcePosition?, msg: String?) {
+ System.err?.println("[ERROR] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
+ }
+
+ override fun printNotice(msg: String?) {
+ System.err?.println("[NOTICE] $msg")
+ }
+
+ override fun printNotice(pos: SourcePosition?, msg: String?) {
+ System.err?.println("[NOTICE] ${pos?.file()}:${pos?.line()}:${pos?.column()}: $msg")
+ }
+} \ No newline at end of file