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

processFile() — spring-boot Function Reference

Architecture documentation for the processFile() function in BootZipCopyAction.java from the spring-boot codebase.

Function java Archiving LauncherConfig calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  5e30db0f_a50d_57a1_482a_28795acd5257["processFile()"]
  430177d0_07bd_3253_4459_6b05ce663ff9["process()"]
  430177d0_07bd_3253_4459_6b05ce663ff9 -->|calls| 5e30db0f_a50d_57a1_482a_28795acd5257
  c932170b_4a25_ba87_8320_28cc6fb2321d["prepareEntry()"]
  5e30db0f_a50d_57a1_482a_28795acd5257 -->|calls| c932170b_4a25_ba87_8320_28cc6fb2321d
  ef8b2304_a3b6_115f_05d1_0642b257a593["getTime()"]
  5e30db0f_a50d_57a1_482a_28795acd5257 -->|calls| ef8b2304_a3b6_115f_05d1_0642b257a593
  5cbc150a_58ed_127f_bbe8_1013d97ec91b["getFileMode()"]
  5e30db0f_a50d_57a1_482a_28795acd5257 -->|calls| 5cbc150a_58ed_127f_bbe8_1013d97ec91b
  8bb6bce9_1656_8045_583c_506fe14b4306["prepareStoredEntry()"]
  5e30db0f_a50d_57a1_482a_28795acd5257 -->|calls| 8bb6bce9_1656_8045_583c_506fe14b4306
  style 5e30db0f_a50d_57a1_482a_28795acd5257 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java lines 240–263

		private void processFile(FileCopyDetails details) throws IOException {
			String name = details.getRelativePath().getPathString();
			ZipArchiveEntry entry = new ZipArchiveEntry(name);
			prepareEntry(entry, name, getTime(details), getFileMode(details));
			ZipCompression compression = BootZipCopyAction.this.compressionResolver.apply(details);
			if (compression == ZipCompression.STORED) {
				prepareStoredEntry(details, entry);
			}
			this.out.putArchiveEntry(entry);
			details.copyTo(this.out);
			this.out.closeArchiveEntry();
			if (BootZipCopyAction.this.librarySpec.isSatisfiedBy(details)) {
				this.writtenLibraries.put(name, details);
			}
			if (REACHABILITY_METADATA_PROPERTIES_LOCATION_PATTERN.matcher(name).matches()) {
				this.reachabilityMetadataProperties.put(name, details);
			}
			if (BootZipCopyAction.this.layerResolver != null) {
				Layer layer = BootZipCopyAction.this.layerResolver.getLayer(details);
				Assert.state(this.layerIndex != null, "'layerIndex' must not be null");
				Assert.state(layer != null, "'layer' must not be null");
				this.layerIndex.add(layer, name);
			}
		}

Domain

Subdomains

Called By

Frequently Asked Questions

What does processFile() do?
processFile() is a function in the spring-boot codebase.
What does processFile() call?
processFile() calls 4 function(s): getFileMode, getTime, prepareEntry, prepareStoredEntry.
What calls processFile()?
processFile() is called by 1 function(s): process.

Analyze Your Own Codebase

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

Try Supermodel Free