JavaAppResource.WithMainClass
Method
type JavaAppResource interface { // ... omitted for brevity WithMainClass(mainClass string) JavaAppResource}Signature
method
WithMainClass builderSets the main class an IDE launches when running or debugging this application. Has no effect on how Aspire starts the process, which is decided by the JAR path, Maven goal, or Gradle task.
WithMainClass(mainClass string) JavaAppResourceParameters
mainClass stringThe fully qualified name of the class declaring main, for example com.example.Application .Returns
JavaAppResource A reference to the I.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: