Class JavaExecutor
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.java.JavaExecutor
- All Implemented Interfaces:
Renamable, ResourceProvider, ResourceRetriever
A provider for execution resultss from invoking a JVM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFrom(Stream<ResourceProvider> providers) Additionally uses the given providers for obtaining contents for the jar.addFrom(ResourceProvider... providers) Additionally uses the given providers for obtaining contents for the jar.doProvide(ResourceRequest<T> requested) Invoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.Returns the main class.Sets the main class.Set the new name.Methods inherited from class AbstractProvider
context, name, newResource, of, rename, toString, vavrStreamMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
of, resources
-
Constructor Details
-
JavaExecutor
Initializes a new java executor.- Parameters:
project- the project
-
-
Method Details
-
name
-
addFrom
Additionally uses the given providers for obtaining contents for the jar.- Specified by:
addFromin interfaceResourceRetriever- Parameters:
providers- the providers- Returns:
- the jar generator
-
addFrom
Additionally uses the given providers for obtaining contents for the jar.- Specified by:
addFromin interfaceResourceRetriever- Parameters:
providers- the providers- Returns:
- the jar generator
-
mainClass
-
mainClass
Sets the main class.- Parameters:
mainClass- the new main class- Returns:
- the jar generator for method chaining
-
doProvide
Description copied from class:AbstractProviderInvoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.- Specified by:
doProvidein classAbstractProvider- Type Parameters:
T- the generic type- Parameters:
requested- the requested- Returns:
- the stream
-