org.wildfly.extras.creaper.commands.modules
Class AddModule
java.lang.Object
org.wildfly.extras.creaper.commands.modules.AddModule
- All Implemented Interfaces:
- Command, OnlineCommand
public class AddModule
- extends Object
- implements OnlineCommand
Adds a module (in the JBoss Modules sense) to the module repository. The necessary directory structure
will be created if needed. The JAR files specified as resources will be copied to the module directory.
Unless a module.xml file was specified as an argument, it will be generated automatically.
Example of resulting cli command:
module add --name=name --slot=slot --resources=jars
--resource-delimiter=char --dependencies=modules --properties=properties
| Fields inherited from interface org.wildfly.extras.creaper.core.online.OnlineCommand |
NOOP |
DEFAULT_SLOT
public static final String DEFAULT_SLOT
- See Also:
- Constant Field Values
apply
public void apply(OnlineCommandContext ctx)
throws Exception
- Specified by:
apply in interface OnlineCommand
- Throws:
Exception
toString
public String toString()
- Specified by:
toString in interface OnlineCommand- Overrides:
toString in class Object
Copyright © 2020. All rights reserved.