public final class SourcesPlugin extends java.lang.Object implements SmithyBuildPlugin
Model sources are model components that were defined in one of the directories marked as "sources" in the original model or a model component that is found in the updated model but not the original model.
When a JAR is provided as a source, the models contained within the JAR are extracted into the sources directory under a directory with the same name as the JAR without the ".jar" extension; the JAR is not copied into the sources directory. For example, given a JAR at "/foo/baz.jar" that contains a "bar.smithy" file, a source will be created named "baz/bar.smithy".
This plugin can only run if an original model is provided.
| Constructor and Description |
|---|
SourcesPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(PluginContext context)
Executes the plugin, creating any number of artifacts.
|
java.lang.String |
getName()
Gets the name of the plugin.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateServiceFactory, createServiceFactory, createServiceFactory, isSerial, requiresValidModelpublic java.lang.String getName()
SmithyBuildPlugingetName in interface SmithyBuildPluginpublic void execute(PluginContext context)
SmithyBuildPluginexecute in interface SmithyBuildPlugincontext - Plugin context for build execution.