Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
ListCommand.class,
RemoveCommand.class
},
sortOptions = false,
versionProvider = ArchiveHelperVersionProvider.class
)
public class ArchiveHelper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
import oracle.weblogic.deploy.util.FileUtils;
import oracle.weblogic.deploy.util.StringUtils;
import oracle.weblogic.deploy.util.WLSDeployArchive;

import picocli.CommandLine.Option;
import picocli.CommandLine.Spec;
import picocli.CommandLine.Unmatched;
import picocli.CommandLine.Model.CommandSpec;

import static oracle.weblogic.deploy.tool.ArchiveHelper.LOGGER_NAME;

Expand All @@ -28,8 +25,14 @@ public abstract class CommonOptions {
@Unmatched
protected List<String> unmatchedOptions;

@Spec
protected CommandSpec spec;
@Option(
names = { "-help" },
description = "Get help for the ${COMMAND-FULL-NAME} command",
usageHelp = true,
defaultValue = "false"
)
@SuppressWarnings("unused")
private boolean helpRequested;

@Option(
names = { "-archive_file" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
header = "Add application to the archive file.",
description = "%nCommand-line options:",
footer = "%nNote: If using an Application Installation Directory, " +
"please see the archiveHelper add structuredApplication command.%n",
sortOptions = false
"please see the archiveHelper add structuredApplication command.%n"
)
public class AddApplicationCommand extends AddTypeCommandBase {
private static final String CLASS = AddApplicationCommand.class.getName();
Expand All @@ -40,13 +39,6 @@ public class AddApplicationCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add application subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "applicationPlan",
header = "Add application deployment plan to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddApplicationPlanCommand extends AddTypeCommandBase {
private static final String CLASS = AddApplicationPlanCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddApplicationPlanCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add applicationPlan subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "classpathLibrary",
header = "Add classpath library to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddClasspathLibraryCommand extends AddTypeCommandBase {
private static final String CLASS = AddClasspathLibraryCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddClasspathLibraryCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add classpathLibrary subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "coherenceConfig",
header = "Add a Coherence config file to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddCoherenceConfigCommand extends AddTypeCommandBase {
private static final String CLASS = AddCoherenceConfigCommand.class.getName();
Expand All @@ -43,13 +42,6 @@ public class AddCoherenceConfigCommand extends AddTypeCommandBase {
)
protected String clusterName;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add coherenceConfig subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
@Command(
name = "coherencePersistenceDir",
header = "Add a Coherence persistence directory to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddCoherencePersistenceDirCommand extends AddTypeCommandBase {
private static final String CLASS = AddCoherencePersistenceDirCommand.class.getName();
Expand All @@ -41,13 +40,6 @@ public class AddCoherencePersistenceDirCommand extends AddTypeCommandBase {
)
private String directoryType;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add coherencePersistenceDir subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
AddSharedLibraryCommand.class,
AddSharedLibraryPlanCommand.class,
AddStructuredApplicationCommand.class,
},
sortOptions = false
}
)
public class AddCommand {
@Option(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
@Command(
name = "custom",
header = "Add custom file/directory to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddCustomCommand extends AddTypeCommandBase {
private static final String CLASS = AddCustomCommand.class.getName();
Expand All @@ -45,13 +44,6 @@ public class AddCustomCommand extends AddTypeCommandBase {
)
private String archivePath = null;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add custom subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "databaseWallet",
header = "Add database wallet to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddDatabaseWalletCommand extends AddTypeCommandBase {
private static final String CLASS = AddDatabaseWalletCommand.class.getName();
Expand All @@ -44,13 +43,6 @@ public class AddDatabaseWalletCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add databaseWallet subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "domainBinScript",
header = "Add $DOMAIN_HOME/bin script to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddDomainBinScriptCommand extends AddTypeCommandBase {
private static final String CLASS = AddDomainBinScriptCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddDomainBinScriptCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add domainBinScript subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "domainLibrary",
header = "Add $DOMAIN_HOME/lib library to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddDomainLibraryCommand extends AddTypeCommandBase {
private static final String CLASS = AddDomainLibraryCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddDomainLibraryCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add domainLibrary subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
@Command(
name = "fileStore",
header = "Add empty file store directory to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddFileStoreCommand extends AddTypeCommandBase {
private static final String CLASS = AddFileStoreCommand.class.getName();
Expand All @@ -33,13 +32,6 @@ public class AddFileStoreCommand extends AddTypeCommandBase {
)
protected String fileStoreName;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add fileStore subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "jmsForeignServer",
header = "Add a JMS Foreign Server binding file to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddJMSForeignServerCommand extends AddTypeCommandBase {
private static final String CLASS = AddJMSForeignServerCommand.class.getName();
Expand All @@ -43,13 +42,6 @@ public class AddJMSForeignServerCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add jmsForeignServer subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "mimeMapping",
header = "Add MIME mapping file to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddMIMEMappingCommand extends AddTypeCommandBase {
private static final String CLASS = AddMIMEMappingCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddMIMEMappingCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add mimeMapping subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "nodeManagerKeystore",
header = "Add node manager keystore to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddNodeManagerKeystoreCommand extends AddTypeCommandBase {
private static final String CLASS = AddNodeManagerKeystoreCommand.class.getName();
Expand All @@ -36,13 +35,6 @@ public class AddNodeManagerKeystoreCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add nodeManagerKeystore subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
@Command(
name = "opssWallet",
header = "Add OPSS wallet to the archive file.",
description = "%nCommand-line options:",
sortOptions = false
description = "%nCommand-line options:"
)
public class AddOPSSWalletCommand extends AddTypeCommandBase {
private static final String CLASS = AddOPSSWalletCommand.class.getName();
Expand All @@ -35,13 +34,6 @@ public class AddOPSSWalletCommand extends AddTypeCommandBase {
)
private String sourcePath;

@Option(
names = { "-help" },
description = "Get help for the archiveHelper add opssWallet subcommand",
usageHelp = true
)
private boolean helpRequested = false;

@Override
public CommandResponse call() throws Exception {
final String METHOD = "call";
Expand Down
Loading