Skip to content

Commit 07d281c

Browse files
committed
Expose public constant for spring.aot.processing system property
Closes gh-33388
1 parent 5326640 commit 07d281c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

spring-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
public abstract class AbstractAotProcessor<T> {
4848

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

5656
private final Settings settings;
5757

@@ -125,6 +125,7 @@ protected void writeHints(RuntimeHints hints) {
125125
writer.write(hints);
126126
}
127127

128+
128129
/**
129130
* Common settings for AOT processors.
130131
*/
@@ -140,7 +141,6 @@ public static final class Settings {
140141

141142
private final String artifactId;
142143

143-
144144
private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) {
145145
this.sourceOutput = sourceOutput;
146146
this.resourceOutput = resourceOutput;
@@ -149,15 +149,13 @@ private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, Strin
149149
this.artifactId = artifactId;
150150
}
151151

152-
153152
/**
154153
* Create a new {@link Builder} for {@link Settings}.
155154
*/
156155
public static Builder builder() {
157156
return new Builder();
158157
}
159158

160-
161159
/**
162160
* Get the output directory for generated sources.
163161
*/
@@ -214,12 +212,10 @@ public static final class Builder {
214212
@Nullable
215213
private String artifactId;
216214

217-
218215
private Builder() {
219216
// internal constructor
220217
}
221218

222-
223219
/**
224220
* Set the output directory for generated sources.
225221
* @param sourceOutput the location of generated sources

0 commit comments

Comments
 (0)