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

newFiles() — spring-boot Function Reference

Architecture documentation for the newFiles() function in AbstractBootArchiveTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  26148072_84a7_a719_f2c9_48891b8396d2["newFiles()"]
  15bb109a_e2de_68b9_bb2b_7871ba599e91["archiveIsReproducibleByDefault()"]
  15bb109a_e2de_68b9_bb2b_7871ba599e91 -->|calls| 26148072_84a7_a719_f2c9_48891b8396d2
  d2529920_2a51_933c_881a_86e6d953e2ed["archiveReproducibilityCanBeDisabled()"]
  d2529920_2a51_933c_881a_86e6d953e2ed -->|calls| 26148072_84a7_a719_f2c9_48891b8396d2
  style 26148072_84a7_a719_f2c9_48891b8396d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveTests.java lines 635–646

	protected File newFiles(String... names) throws IOException {
		File dir = new File(this.temp, UUID.randomUUID().toString());
		dir.mkdir();
		List<File> files = new ArrayList<>();
		for (String name : names) {
			File file = new File(dir, name);
			file.getParentFile().mkdirs();
			file.createNewFile();
			files.add(file);
		}
		return dir;
	}

Domain

Subdomains

Frequently Asked Questions

What does newFiles() do?
newFiles() is a function in the spring-boot codebase.
What calls newFiles()?
newFiles() is called by 2 function(s): archiveIsReproducibleByDefault, archiveReproducibilityCanBeDisabled.

Analyze Your Own Codebase

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

Try Supermodel Free