Skip to content

Commit

Permalink
Expose public constant for spring.aot.processing system property
Browse files Browse the repository at this point in the history
Closes gh-33388
  • Loading branch information
jhoeller committed Sep 26, 2024
1 parent 5326640 commit 07d281c
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
public abstract class AbstractAotProcessor<T> {

/**
* The name of a system property that is made available when the processor
* runs.
* The name of a system property that is made available when the processor runs.
* @since 6.2
* @see #doProcess()
*/
private static final String AOT_PROCESSING = "spring.aot.processing";
public static final String AOT_PROCESSING = "spring.aot.processing";

private final Settings settings;

Expand Down Expand Up @@ -125,6 +125,7 @@ protected void writeHints(RuntimeHints hints) {
writer.write(hints);
}


/**
* Common settings for AOT processors.
*/
Expand All @@ -140,7 +141,6 @@ public static final class Settings {

private final String artifactId;


private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) {
this.sourceOutput = sourceOutput;
this.resourceOutput = resourceOutput;
Expand All @@ -149,15 +149,13 @@ private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, Strin
this.artifactId = artifactId;
}


/**
* Create a new {@link Builder} for {@link Settings}.
*/
public static Builder builder() {
return new Builder();
}


/**
* Get the output directory for generated sources.
*/
Expand Down Expand Up @@ -214,12 +212,10 @@ public static final class Builder {
@Nullable
private String artifactId;


private Builder() {
// internal constructor
}


/**
* Set the output directory for generated sources.
* @param sourceOutput the location of generated sources
Expand Down

0 comments on commit 07d281c

Please sign in to comment.