Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

JavaAppResource Constructors

ClassConstructors1 member
Represents a Java application resource in the distributed application model.
Represents a Java application resource in the distributed application model.
public class JavaAppResource
{
public JavaAppResource(
string name,
string workingDirectory)
{
// ...
}
}
namestringThe name of the resource in the application model.
workingDirectorystringThe working directory for the Java application.
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.