AMATERASU-51: Add support for configuring the path for action level environment path
authorEran Bartenstein <eran.bartenstein@nab.com.au>
Mon, 5 Nov 2018 08:33:47 +0000 (19:33 +1100)
committerEran Bartenstein <eran.bartenstein@nab.com.au>
Mon, 5 Nov 2018 08:33:47 +0000 (19:33 +1100)
Convert Logging into Kotlin and create a Java proxy class

common/src/main/java/org/apache/amaterasu/common/logging/Logging.java [new file with mode: 0644]
common/src/main/kotlin/org/apache/amaterasu/common/logging/KLogging.kt [new file with mode: 0644]
common/src/main/scala/org/apache/amaterasu/common/logging/Logging.scala [deleted file]

diff --git a/common/src/main/java/org/apache/amaterasu/common/logging/Logging.java b/common/src/main/java/org/apache/amaterasu/common/logging/Logging.java
new file mode 100644 (file)
index 0000000..3581560
--- /dev/null
@@ -0,0 +1,7 @@
+package org.apache.amaterasu.common.logging;
+
+/**
+ * Created by Eran Bartenstein (p765790) on 5/11/18.
+ */
+public abstract class Logging extends KLogging {
+}
diff --git a/common/src/main/kotlin/org/apache/amaterasu/common/logging/KLogging.kt b/common/src/main/kotlin/org/apache/amaterasu/common/logging/KLogging.kt
new file mode 100644 (file)
index 0000000..2b4e411
--- /dev/null
@@ -0,0 +1,10 @@
+package org.apache.amaterasu.common.logging
+
+import org.slf4j.LoggerFactory
+
+/**
+ * Created by Eran Bartenstein on 5/11/18.
+ */
+abstract class KLogging {
+    protected var log = LoggerFactory.getLogger(this.javaClass.name)
+}
diff --git a/common/src/main/scala/org/apache/amaterasu/common/logging/Logging.scala b/common/src/main/scala/org/apache/amaterasu/common/logging/Logging.scala
deleted file mode 100755 (executable)
index 5c9f656..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.amaterasu.common.logging
-
-import org.slf4j.LoggerFactory
-
-trait Logging {
-  protected lazy val log = LoggerFactory.getLogger(getClass.getName)
-}
-