org.wildfly.extras.creaper.commands.modules
Class AddModule

java.lang.Object
  extended by 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


Nested Class Summary
static class AddModule.Builder
           
 
Field Summary
static String DEFAULT_SLOT
           
 
Method Summary
 void apply(OnlineCommandContext ctx)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SLOT

public static final String DEFAULT_SLOT
See Also:
Constant Field Values
Method Detail

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 © 2016. All rights reserved.