Package rife.bld.extension
Class AbstractJReleaserOperation<S extends AbstractJReleaserOperation<S>>
java.lang.Object
rife.bld.operations.AbstractOperation<T>
rife.bld.operations.AbstractProcessOperation<S>
rife.bld.extension.AbstractJReleaserOperation<S>
- Direct Known Subclasses:
AbstractJReleaserModelOperation
,JReleaserEnvOperation
,JReleaserInitOperation
,JReleaserJsonSchemaOperation
,JReleaserTemplateGenerateOperation
public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOperation<S>>
extends AbstractProcessOperation<S>
Base class for all JReleaser operations.
-
Field Summary
FieldsFields inherited from class rife.bld.operations.AbstractProcessOperation
classpath_, DEFAULT_JAVA_TOOL, environment_, errorProcessor_, errorProcessorThread_, javaOptions_, javaTool_, mainClass_, module_, modulePath_, outputProcessor_, outputProcessorThread_, process_, successful_, workDirectory_
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the base directory.Sets the base directory.Sets the base directory.debug()
Set log level to debug.void
execute()
Part of theexecute()
operation, constructs the command list to use for building the process.fromProject
(BaseProject project) Configures the operation from aBaseProject
.protected String
protected BaseProject
help()
Show the help message.info()
Set log level to info.outputDirectory
(File directory) Output directory.outputDirectory
(String directory) Output directory.outputDirectory
(Path directory) Output directory.protected final S
self()
protected void
protected void
systemProperty
(String key, String value) Sets a System property.version()
Print version information.warn()
Set log level to warn.Methods inherited from class rife.bld.operations.AbstractProcessOperation
classpath, classpath, classpath, environment, environment, environment, errorProcessor, errorProcessor, executeStartProcess, javaOptions, javaOptions, javaTool, javaTool, mainClass, mainClass, module, module, modulePath, modulePath, modulePath, outputProcessor, outputProcessor, process, workDirectory, workDirectory
Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Field Details
-
EMPTY
- See Also:
-
-
Constructor Details
-
AbstractJReleaserOperation
-
-
Method Details
-
self
-
getCommand
-
getProject
-
setOption
-
setOption
-
basedir
Sets the base directory.- Parameters:
directory
- the base directory- Returns:
- this operation instance
-
basedir
Sets the base directory.- Parameters:
directory
- the base directory- Returns:
- this operation instance
-
basedir
Sets the base directory.- Parameters:
directory
- the base directory- Returns:
- this operation instance
-
debug
Set log level to debug.- Returns:
- this operation instance
-
execute
- Overrides:
execute
in classAbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
- Throws:
IOException
InterruptedException
ExitStatusException
-
executeConstructProcessCommandList
Part of theexecute()
operation, constructs the command list to use for building the process.- Specified by:
executeConstructProcessCommandList
in classAbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
-
fromProject
Configures the operation from aBaseProject
.- Specified by:
fromProject
in classAbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
- Parameters:
project
- the project to configure the operation from
-
help
Show the help message.- Returns:
- this operation instance
-
info
Set log level to info.- Returns:
- this operation instance
-
outputDirectory
Output directory.- Parameters:
directory
- the output directory- Returns:
- this operation instance
-
outputDirectory
Output directory.- Parameters:
directory
- the output directory- Returns:
- this operation instance
-
outputDirectory
Output directory.- Parameters:
directory
- the output directory- Returns:
- this operation instance
-
systemProperty
Sets a System property.- Parameters:
key
- the property keyvalue
- the property value- Returns:
- this operation instance
-
version
Print version information.- Returns:
- this operation instance
-
warn
Set log level to warn.- Returns:
- this operation instance
-