onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1503201 - in /onami/sandbox/console: ./ src/main/java/org/apache/onami/console/commands/ src/main/resources/META-INF/services/
Date Mon, 15 Jul 2013 12:25:29 GMT
Author: simonetripodi
Date: Mon Jul 15 12:25:28 2013
New Revision: 1503201

URL: http://svn.apache.org/r1503201
Log:
no real benefits on letting META-INF/services be generated

Added:
    onami/sandbox/console/src/main/resources/META-INF/services/java.lang.Runnable
Modified:
    onami/sandbox/console/pom.xml
    onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Config.java
    onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Exit.java
    onami/sandbox/console/src/main/java/org/apache/onami/console/commands/History.java
    onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Version.java

Modified: onami/sandbox/console/pom.xml
URL: http://svn.apache.org/viewvc/onami/sandbox/console/pom.xml?rev=1503201&r1=1503200&r2=1503201&view=diff
==============================================================================
--- onami/sandbox/console/pom.xml (original)
+++ onami/sandbox/console/pom.xml Mon Jul 15 12:25:28 2013
@@ -164,14 +164,6 @@
       <version>3.0.10</version>
     </dependency>
 
-    <!-- generates META-INF/services files -->
-    <dependency>
-      <groupId>org.kohsuke.metainf-services</groupId>
-      <artifactId>metainf-services</artifactId>
-      <version>1.5</version>
-      <scope>provided</scope>
-    </dependency>
-
     <!--
      | Test dependencies
     -->

Modified: onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Config.java
URL: http://svn.apache.org/viewvc/onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Config.java?rev=1503201&r1=1503200&r2=1503201&view=diff
==============================================================================
--- onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Config.java (original)
+++ onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Config.java Mon
Jul 15 12:25:28 2013
@@ -24,7 +24,6 @@ import io.airlift.command.Command;
 import java.util.Map.Entry;
 
 import org.apache.onami.logging.core.InjectLogger;
-import org.kohsuke.MetaInfServices;
 import org.slf4j.Logger;
 
 import com.google.inject.Binding;
@@ -34,7 +33,6 @@ import com.google.inject.Key;
 import com.google.inject.TypeLiteral;
 import com.google.inject.name.Named;
 
-@MetaInfServices
 @Command( name = "config", description = "Print configured variables." )
 public final class Config
     implements Runnable

Modified: onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Exit.java
URL: http://svn.apache.org/viewvc/onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Exit.java?rev=1503201&r1=1503200&r2=1503201&view=diff
==============================================================================
--- onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Exit.java (original)
+++ onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Exit.java Mon Jul
15 12:25:28 2013
@@ -20,12 +20,8 @@ package org.apache.onami.console.command
  */
 
 import static java.lang.System.exit;
-
-import org.kohsuke.MetaInfServices;
-
 import io.airlift.command.Command;
 
-@MetaInfServices
 @Command( name = "exit", description = "Terminates the program execution." )
 public final class Exit
     implements Runnable

Modified: onami/sandbox/console/src/main/java/org/apache/onami/console/commands/History.java
URL: http://svn.apache.org/viewvc/onami/sandbox/console/src/main/java/org/apache/onami/console/commands/History.java?rev=1503201&r1=1503200&r2=1503201&view=diff
==============================================================================
--- onami/sandbox/console/src/main/java/org/apache/onami/console/commands/History.java (original)
+++ onami/sandbox/console/src/main/java/org/apache/onami/console/commands/History.java Mon
Jul 15 12:25:28 2013
@@ -26,12 +26,10 @@ import java.util.ListIterator;
 import jline.console.history.History.Entry;
 
 import org.apache.onami.logging.core.InjectLogger;
-import org.kohsuke.MetaInfServices;
 import org.slf4j.Logger;
 
 import com.google.inject.Inject;
 
-@MetaInfServices
 @Command( name = "history", description = "Print commands been executed within the running
console's process." )
 public final class History
     implements Runnable

Modified: onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Version.java
URL: http://svn.apache.org/viewvc/onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Version.java?rev=1503201&r1=1503200&r2=1503201&view=diff
==============================================================================
--- onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Version.java (original)
+++ onami/sandbox/console/src/main/java/org/apache/onami/console/commands/Version.java Mon
Jul 15 12:25:28 2013
@@ -19,18 +19,16 @@ package org.apache.onami.console.command
  * under the License.
  */
 
-import java.util.Locale;
-
 import io.airlift.command.Command;
 
+import java.util.Locale;
+
 import org.apache.onami.logging.core.InjectLogger;
-import org.kohsuke.MetaInfServices;
 import org.slf4j.Logger;
 
 import com.google.inject.Inject;
 import com.google.inject.name.Named;
 
-@MetaInfServices
 @Command( name = "version", description = "Display version information." )
 public final class Version
     implements Runnable

Added: onami/sandbox/console/src/main/resources/META-INF/services/java.lang.Runnable
URL: http://svn.apache.org/viewvc/onami/sandbox/console/src/main/resources/META-INF/services/java.lang.Runnable?rev=1503201&view=auto
==============================================================================
--- onami/sandbox/console/src/main/resources/META-INF/services/java.lang.Runnable (added)
+++ onami/sandbox/console/src/main/resources/META-INF/services/java.lang.Runnable Mon Jul
15 12:25:28 2013
@@ -0,0 +1,21 @@
+# 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.
+
+org.apache.onami.console.commands.Config
+org.apache.onami.console.commands.Exit
+org.apache.onami.console.commands.History
+org.apache.onami.console.commands.Version



Mime
View raw message