aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-01-31 23:40:27 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-01-31 23:40:27 +0100
commit2322b64689b6444a0b103d2ffd1ee8a7de5eb2af (patch)
tree526389865c6666200635b6b8d325c4f46573a5f9 /src/core
parent1634000db4a8cf923e8e6ac53dfac1725a65bb08 (diff)
downloadlombok-2322b64689b6444a0b103d2ffd1ee8a7de5eb2af.tar.gz
lombok-2322b64689b6444a0b103d2ffd1ee8a7de5eb2af.tar.bz2
lombok-2322b64689b6444a0b103d2ffd1ee8a7de5eb2af.zip
Updated copyright notice in command line tool help, made debug tool=true subapps not show up in the list of available commands.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/bytecode/PoolConstantsApp.java26
-rw-r--r--src/core/lombok/core/Main.java5
2 files changed, 24 insertions, 7 deletions
diff --git a/src/core/lombok/bytecode/PoolConstantsApp.java b/src/core/lombok/bytecode/PoolConstantsApp.java
index 59c51a37..c2120cc0 100644
--- a/src/core/lombok/bytecode/PoolConstantsApp.java
+++ b/src/core/lombok/bytecode/PoolConstantsApp.java
@@ -1,8 +1,28 @@
+/*
+ * Copyright (C) 2012 The Project Lombok Authors.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
package lombok.bytecode;
import java.io.File;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.List;
import lombok.core.LombokApp;
@@ -23,10 +43,6 @@ public class PoolConstantsApp extends LombokApp {
return "Xprintpool";
}
- @Override public List<String> getAppAliases() {
- return Arrays.asList("Xprintpool");
- }
-
@Override public String getAppDescription() {
return "Prints the content of the constant pool to standard out.";
}
diff --git a/src/core/lombok/core/Main.java b/src/core/lombok/core/Main.java
index 408bfd4a..5121d304 100644
--- a/src/core/lombok/core/Main.java
+++ b/src/core/lombok/core/Main.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2010 The Project Lombok Authors.
+ * Copyright (C) 2009-2012 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -142,12 +142,13 @@ public class Main {
out.println("------------------------------");
}
out.println("projectlombok.org v" + Version.getVersion());
- out.println("Copyright (C) 2009-2010 The Project Lombok Authors.");
+ out.println("Copyright (C) 2009-2012 The Project Lombok Authors.");
out.println("Run 'lombok license' to see the lombok license agreement.");
out.println();
out.println("Run lombok without any parameters to start the graphical installer.");
out.println("Other available commands:");
for (LombokApp app : apps) {
+ if (app.isDebugTool()) continue;
String[] desc = app.getAppDescription().split("\n");
for (int i = 0; i < desc.length; i++) {
out.printf(" %15s %s\n", i == 0 ? app.getAppName() : "", desc[i]);