Home / Function/ executeAot() — spring-boot Function Reference

executeAot() — spring-boot Function Reference

Architecture documentation for the executeAot() function in ProcessTestAotMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f93b965d_9ff9_b7df_c845_8f04da6b207e["executeAot()"]
  c6646c7b_11bd_66b4_cd51_8d9cb75a8d1e["getClassPath()"]
  f93b965d_9ff9_b7df_c845_8f04da6b207e -->|calls| c6646c7b_11bd_66b4_cd51_8d9cb75a8d1e
  ab8f8c41_a7a4_357b_d74a_acff250f5a0d["getAotArguments()"]
  f93b965d_9ff9_b7df_c845_8f04da6b207e -->|calls| ab8f8c41_a7a4_357b_d74a_acff250f5a0d
  style f93b965d_9ff9_b7df_c845_8f04da6b207e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ProcessTestAotMojo.java lines 121–141

	@Override
	protected void executeAot() throws Exception {
		if (this.project.getPackaging().equals("pom")) {
			getLog().debug("process-test-aot goal could not be applied to pom project.");
			return;
		}
		if (Boolean.getBoolean("maven.test.skip")) {
			getLog().info("Skipping AOT test processing since tests are skipped");
			return;
		}
		Path testOutputDirectory = Paths.get(this.project.getBuild().getTestOutputDirectory());
		if (Files.notExists(testOutputDirectory)) {
			getLog().info("Skipping AOT test processing since no tests have been detected");
			return;
		}
		generateAotAssets(getClassPath(true), AOT_PROCESSOR_CLASS_NAME, getAotArguments());
		compileSourceFiles(getClassPath(false), this.generatedSources, this.generatedTestClasses);
		copyAll(this.generatedResources.toPath().resolve("META-INF/native-image"),
				this.testClassesDirectory.toPath().resolve("META-INF/native-image"));
		copyAll(this.generatedTestClasses.toPath(), this.testClassesDirectory.toPath());
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does executeAot() do?
executeAot() is a function in the spring-boot codebase.
What does executeAot() call?
executeAot() calls 2 function(s): getAotArguments, getClassPath.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free