You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Liqi Yi (JIRA)" <ji...@apache.org> on 2015/02/28 12:22:04 UTC

[jira] [Issue Comment Deleted] (DIRKRB-163) align package declearation and real path for Kinit.java

     [ https://issues.apache.org/jira/browse/DIRKRB-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liqi Yi updated DIRKRB-163:
---------------------------
    Comment: was deleted

(was: patch as follows:

diff --git a/tool/src/main/java/org/apache/kerberos/tool/Kinit.java b/tool/src/main/java/org/apache/kerberos/tool/Kinit.java
deleted file mode 100644
index 7362c4f..0000000
--- a/tool/src/main/java/org/apache/kerberos/tool/Kinit.java
+++ /dev/null
@@ -1,42 +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.kerby.kerberos.tool;
-
-import org.apache.kerby.kerberos.kerb.client.KrbClient;
-
-/**
- * kinit like tool
- */
-public class Kinit {
-
-    public static void main(String[] args) throws Exception {
-        if (args.length < 2 || args.length > 3) {
-            System.err.println(
-                    "Usage: " + Kinit.class.getSimpleName() +
-                            " <kdcHost> <kdcPort>");
-            return;
-        }
-
-        final String host = args[0];
-        final Integer port = Integer.parseInt(args[1]);
-        KrbClient krbClnt = new KrbClient(host, port.shortValue());
-    }
-
-}
diff --git a/tool/src/main/java/org/apache/kerby/kerberos/tool/Kinit.java b/tool/src/main/java/org/apache/kerby/kerberos/tool/Kinit.java
new file mode 100644
index 0000000..7362c4f
--- /dev/null
+++ b/tool/src/main/java/org/apache/kerby/kerberos/tool/Kinit.java
@@ -0,0 +1,42 @@
+/**
+ *  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.kerby.kerberos.tool;
+
+import org.apache.kerby.kerberos.kerb.client.KrbClient;
+
+/**
+ * kinit like tool
+ */
+public class Kinit {
+
+    public static void main(String[] args) throws Exception {
+        if (args.length < 2 || args.length > 3) {
+            System.err.println(
+                    "Usage: " + Kinit.class.getSimpleName() +
+                            " <kdcHost> <kdcPort>");
+            return;
+        }
+
+        final String host = args[0];
+        final Integer port = Integer.parseInt(args[1]);
+        KrbClient krbClnt = new KrbClient(host, port.shortValue());
+    }
+
+})

> align package declearation and real path for Kinit.java
> -------------------------------------------------------
>
>                 Key: DIRKRB-163
>                 URL: https://issues.apache.org/jira/browse/DIRKRB-163
>             Project: Directory Kerberos
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M16
>            Reporter: Liqi Yi
>            Priority: Trivial
>              Labels: newbie
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> package declearation for 
> tool/src/main/java/org/apache/kerberos/tool/Kinit.java is 
> org.apache.kerby.kerberos.tool
> which two do not match, reported by eclipse.
> moving Kinit.java to  
> tool/src/main/java/org/apache/kerby/kerberos/tool/
> would solve the confliction.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)