BuildPlan
Describes how to build a Java application as a native executable.
Pass this plan to a Planner.Local for validation against a Target. For example:
var plan = new BuildPlan("example.Main", List.of("-O2"));Record components
mainClassnon-null (implied) by @NullMarked on package example.runtime- the fully qualified entry point
argumentsnon-null (implied) by @NullMarked on package example.runtime- compiler arguments in invocation order
See also
- Write a preparation step
- Feature tour
- Prepare your first build
Constructors1
Methods6
public final String toString()
public final String toString()Returns a string containing the record class name and its component names and values.
Returns
- non-null (implied) by @NullMarked on package example.runtime
Overrides toString().
public final int hashCode()
public final int hashCode()public final boolean equals(Object o)
public final boolean equals(Object o)Returns whether the other object is a record of the same class with equal components.
Parameters
onullable (implied) by JSpecify’s rule for record equals(Object)- The object to compare with this record.
Overrides equals(java.lang.Object).
public String mainClass()
public String mainClass()