public class RunnerJarPhase extends Object implements AppCreationPhase<RunnerJarPhase>, RunnerJarOutcome
AugmentOutcome,
this phase builds a runnable JAR.| Constructor and Description |
|---|
RunnerJarPhase() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigPropertyName() |
Path |
getLibDir() |
PropertiesHandler<RunnerJarPhase> |
getPropertiesHandler() |
Path |
getRunnerJar() |
void |
provideOutcome(AppCreator ctx)
Invoked by the router to process the phase.
|
void |
register(OutcomeProviderRegistration registration)
Invoked during when a handler is added to the phase router.
|
RunnerJarPhase |
setFinalName(String finalName)
Name for the runnable JAR.
|
RunnerJarPhase |
setLibDir(Path libDir)
Directory for application dependencies.
|
RunnerJarPhase |
setMainClass(String mainClass)
Main class name fir the runnable JAR.
|
RunnerJarPhase |
setOutputDir(Path outputDir)
Output directory for the outcome of this phase.
|
RunnerJarPhase |
setUberJar(boolean uberJar)
Whether to build an uber JAR.
|
public RunnerJarPhase setOutputDir(Path outputDir)
outputDir - output directory for this phasepublic RunnerJarPhase setLibDir(Path libDir)
libDir - directory for project dependenciespublic RunnerJarPhase setFinalName(String finalName)
finalName - runnable JAR namepublic RunnerJarPhase setMainClass(String mainClass)
mainClass - main class name for the runnable JARpublic RunnerJarPhase setUberJar(boolean uberJar)
uberJar - whether to build an uber JARpublic Path getRunnerJar()
getRunnerJar in interface RunnerJarOutcomepublic Path getLibDir()
getLibDir in interface RunnerJarOutcomepublic void register(OutcomeProviderRegistration registration) throws AppCreatorException
OutcomeProviderregister in interface OutcomeProvider<AppCreator>registration - registration callbackAppCreatorException - in case of a failurepublic void provideOutcome(AppCreator ctx) throws AppCreatorException
OutcomeProviderprovideOutcome in interface OutcomeProvider<AppCreator>ctx - phase processing contextAppCreatorException - in case of a failurepublic String getConfigPropertyName()
getConfigPropertyName in interface Configurable<RunnerJarPhase>public PropertiesHandler<RunnerJarPhase> getPropertiesHandler()
getPropertiesHandler in interface Configurable<RunnerJarPhase>Copyright © 2019 JBoss by Red Hat. All rights reserved.