WithMainClass
Method
func (JavaAppResource) WithMainClass(mainClass string) JavaAppResourceSignature
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().
Applies to
This method applies to the following types: