mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-03 08:18:57 +00:00
Updated copyright notice in command line tool help, made debug tool=true subapps not show up in the list of available commands.
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user