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

getComposeFile() — spring-boot Function Reference

Architecture documentation for the getComposeFile() function in DockerComposeLifecycleManager.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  d4e529c4_6f38_ee07_32db_91c37f74e3ac["getComposeFile()"]
  9a3bcb8a_c3cd_f4b9_7a55_7e8b9b547651["start()"]
  9a3bcb8a_c3cd_f4b9_7a55_7e8b9b547651 -->|calls| d4e529c4_6f38_ee07_32db_91c37f74e3ac
  373d314e_870d_8050_07db_6b56900be698["find()"]
  d4e529c4_6f38_ee07_32db_91c37f74e3ac -->|calls| 373d314e_870d_8050_07db_6b56900be698
  0a841a8a_20f1_c517_4b01_0f36d68146a5["of()"]
  d4e529c4_6f38_ee07_32db_91c37f74e3ac -->|calls| 0a841a8a_20f1_c517_4b01_0f36d68146a5
  c5223cfb_572b_5060_0a9f_4c760e1726c2["getFiles()"]
  d4e529c4_6f38_ee07_32db_91c37f74e3ac -->|calls| c5223cfb_572b_5060_0a9f_4c760e1726c2
  263aa767_1d3f_338e_9717_9cbff3b5895d["toString()"]
  d4e529c4_6f38_ee07_32db_91c37f74e3ac -->|calls| 263aa767_1d3f_338e_9717_9cbff3b5895d
  style d4e529c4_6f38_ee07_32db_91c37f74e3ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/lifecycle/DockerComposeLifecycleManager.java lines 150–162

	protected DockerComposeFile getComposeFile() {
		DockerComposeFile composeFile = (CollectionUtils.isEmpty(this.properties.getFile()))
				? DockerComposeFile.find(this.workingDirectory) : DockerComposeFile.of(this.properties.getFile());
		Assert.state(composeFile != null, () -> "No Docker Compose file found in directory '%s'".formatted(
				((this.workingDirectory != null) ? this.workingDirectory : new File(".")).toPath().toAbsolutePath()));
		if (composeFile.getFiles().size() == 1) {
			logger.info(LogMessage.format("Using Docker Compose file %s", composeFile.getFiles().get(0)));
		}
		else {
			logger.info(LogMessage.format("Using Docker Compose files %s", composeFile.toString()));
		}
		return composeFile;
	}

Domain

Subdomains

Calls

  • find()
  • getFiles()
  • of()
  • toString()

Called By

Frequently Asked Questions

What does getComposeFile() do?
getComposeFile() is a function in the spring-boot codebase.
What does getComposeFile() call?
getComposeFile() calls 4 function(s): find, getFiles, of, toString.
What calls getComposeFile()?
getComposeFile() is called by 1 function(s): start.

Analyze Your Own Codebase

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

Try Supermodel Free