Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

JavaAppResource

Classnet10.0
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
Represents a Java application resource in the distributed application model.
namespace Aspire.Hosting.Java;
public class JavaAppResource
: Aspire.Hosting.ApplicationModel.ExecutableResource,
Aspire.Hosting.ApplicationModel.IContainerFilesDestinationResource,
Aspire.Hosting.ApplicationModel.IResource,
Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
Aspire.Hosting.ApplicationModel.IResourceWithEnvironment,
Aspire.Hosting.IResourceWithServiceDiscovery,
Aspire.Hosting.Java.IJavaAppResource
{
// ...
}
ExecutableResourceIContainerFilesDestinationResourceIResourceIResourceWithEndpointsIResourceWithEnvironmentIResourceWithServiceDiscoveryIJavaAppResource
The command is always java. When the application is launched through a Maven goal or a Gradle task, the wrapper script replaces that command; see WithMavenGoal and WithGradleTask.
View all constructors