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

run() — spring-boot Function Reference

Architecture documentation for the run() function in JavaProcessExecutor.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  cb94c85d_52cc_87c7_3b48_37c4b4a5f1e5["run()"]
  6d640e4c_02a5_d469_0de0_d6aacda2d887["runAsync()"]
  6d640e4c_02a5_d469_0de0_d6aacda2d887 -->|calls| cb94c85d_52cc_87c7_3b48_37c4b4a5f1e5
  9f0caf43_b8d1_3c63_8ec2_d96bbb426ab0["getJavaExecutable()"]
  cb94c85d_52cc_87c7_3b48_37c4b4a5f1e5 -->|calls| 9f0caf43_b8d1_3c63_8ec2_d96bbb426ab0
  82abb7da_9c34_d267_5716_ff788921e9a0["hasTerminatedSuccessfully()"]
  cb94c85d_52cc_87c7_3b48_37c4b4a5f1e5 -->|calls| 82abb7da_9c34_d267_5716_ff788921e9a0
  style cb94c85d_52cc_87c7_3b48_37c4b4a5f1e5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/JavaProcessExecutor.java lines 66–82

	int run(File workingDirectory, List<String> args, Map<String, String> environmentVariables)
			throws MojoExecutionException {
		RunProcess runProcess = new RunProcess(workingDirectory, getJavaExecutable());
		if (this.runProcessCustomizer != null) {
			this.runProcessCustomizer.accept(runProcess);
		}
		try {
			int exitCode = runProcess.run(true, args, environmentVariables);
			if (!hasTerminatedSuccessfully(exitCode)) {
				throw new MojoExecutionException("Process terminated with exit code: " + exitCode);
			}
			return exitCode;
		}
		catch (IOException ex) {
			throw new MojoExecutionException("Process execution failed", ex);
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does run() do?
run() is a function in the spring-boot codebase.
What does run() call?
run() calls 2 function(s): getJavaExecutable, hasTerminatedSuccessfully.
What calls run()?
run() is called by 1 function(s): runAsync.

Analyze Your Own Codebase

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

Try Supermodel Free