public class GenerateMetadataTask extends DefaultTask
Task.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
GenerateMetadataTask()
Constructor sets task never up to date.
|
| Modifier and Type | Method and Description |
|---|---|
List<Path> |
getMetadataFilesBungee()
|
List<Path> |
getMetadataFilesSpigot()
|
File |
getOuputFileBungee()
Gets the bungee output file.
|
File |
getOuputFileSpigot()
Gets the spigot output file.
|
Path |
getTargetBungee()
Gets the
Path for the generated bungee PluginMetadata. |
Path |
getTargetSpigot()
Gets the
Path for the generated spigot PluginMetadata. |
void |
setMergeMetadata(boolean state)
Enables or disables the merging of available
PluginMetadata
sources. |
void |
setProviderBungee(Supplier<eu.hexagonmc.spigot.annotation.meta.PluginMetadata> supplier)
Sets an supplier that returns existing bungee
PluginMetadata. |
void |
setProviderSpigot(Supplier<eu.hexagonmc.spigot.annotation.meta.PluginMetadata> supplier)
Sets an supplier that returns existing spigot
PluginMetadata. |
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic GenerateMetadataTask()
public void setMergeMetadata(boolean state)
PluginMetadata
sources.state - True to enable false otherwisepublic void setProviderSpigot(Supplier<eu.hexagonmc.spigot.annotation.meta.PluginMetadata> supplier)
PluginMetadata.supplier - The supplierpublic void setProviderBungee(Supplier<eu.hexagonmc.spigot.annotation.meta.PluginMetadata> supplier)
PluginMetadata.supplier - The supplier@Internal public Path getTargetSpigot()
Path for the generated spigot PluginMetadata.Path@OutputFile public File getOuputFileSpigot()
@Internal public Path getTargetBungee()
Path for the generated bungee PluginMetadata.Path@OutputFile public File getOuputFileBungee()