|
|
|
@ -47,8 +47,7 @@ import org.springframework.util.FileSystemUtils; |
|
|
|
public abstract class AbstractAotProcessor<T> { |
|
|
|
public abstract class AbstractAotProcessor<T> { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The name of a system property that is made available when the processor |
|
|
|
* The name of a system property that is made available when the processor runs. |
|
|
|
* runs. |
|
|
|
|
|
|
|
* @see #doProcess() |
|
|
|
* @see #doProcess() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private static final String AOT_PROCESSING = "spring.aot.processing"; |
|
|
|
private static final String AOT_PROCESSING = "spring.aot.processing"; |
|
|
|
@ -125,6 +124,7 @@ public abstract class AbstractAotProcessor<T> { |
|
|
|
writer.write(hints); |
|
|
|
writer.write(hints); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Common settings for AOT processors. |
|
|
|
* Common settings for AOT processors. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -140,7 +140,6 @@ public abstract class AbstractAotProcessor<T> { |
|
|
|
|
|
|
|
|
|
|
|
private final String artifactId; |
|
|
|
private final String artifactId; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) { |
|
|
|
private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) { |
|
|
|
this.sourceOutput = sourceOutput; |
|
|
|
this.sourceOutput = sourceOutput; |
|
|
|
this.resourceOutput = resourceOutput; |
|
|
|
this.resourceOutput = resourceOutput; |
|
|
|
@ -149,7 +148,6 @@ public abstract class AbstractAotProcessor<T> { |
|
|
|
this.artifactId = artifactId; |
|
|
|
this.artifactId = artifactId; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create a new {@link Builder} for {@link Settings}. |
|
|
|
* Create a new {@link Builder} for {@link Settings}. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -157,7 +155,6 @@ public abstract class AbstractAotProcessor<T> { |
|
|
|
return new Builder(); |
|
|
|
return new Builder(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the output directory for generated sources. |
|
|
|
* Get the output directory for generated sources. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -214,12 +211,10 @@ public abstract class AbstractAotProcessor<T> { |
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
private String artifactId; |
|
|
|
private String artifactId; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Builder() { |
|
|
|
private Builder() { |
|
|
|
// internal constructor
|
|
|
|
// internal constructor
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Set the output directory for generated sources. |
|
|
|
* Set the output directory for generated sources. |
|
|
|
* @param sourceOutput the location of generated sources |
|
|
|
* @param sourceOutput the location of generated sources |
|
|
|
|