Class JavaExecuter
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.java.JavaExecuter
- All Implemented Interfaces:
ResourceProvider, ResourceRetriever
The Class JavaExec.
-
Field Summary
Fields inherited from class AbstractProvider
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoProvide(ResourceRequest<T> requested) Invoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.from(Stream<ResourceProvider> providers) Additionally uses the given providers for obtaining contents for the jar.from(ResourceProvider... providers) Additionally uses the given providers for obtaining contents for the jar.Returns the main class.Sets the main class.Methods inherited from class AbstractProvider
context, newResource, of, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
of, resources
-
Constructor Details
-
JavaExecuter
Initializes a new java executor.- Parameters:
project- the project
-
-
Method Details
-
from
Additionally uses the given providers for obtaining contents for the jar.- Specified by:
fromin interfaceResourceRetriever- Parameters:
providers- the providers- Returns:
- the jar generator
-
from
Additionally uses the given providers for obtaining contents for the jar.- Specified by:
fromin 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
-