writeClassPathIndexIfNecessary() — spring-boot Function Reference
Architecture documentation for the writeClassPathIndexIfNecessary() function in BootZipCopyAction.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1cd4e284_1e39_1322_db57_d8628f898823["writeClassPathIndexIfNecessary()"] 40a2d94c_64cc_cc36_cff0_428f467bc9d9["finish()"] 40a2d94c_64cc_cc36_cff0_428f467bc9d9 -->|calls| 1cd4e284_1e39_1322_db57_d8628f898823 e16da5d1_b19e_4d45_229b_91569861926e["writeEntry()"] 1cd4e284_1e39_1322_db57_d8628f898823 -->|calls| e16da5d1_b19e_4d45_229b_91569861926e style 1cd4e284_1e39_1322_db57_d8628f898823 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 353–363
private void writeClassPathIndexIfNecessary() throws IOException {
Attributes manifestAttributes = BootZipCopyAction.this.manifest.getAttributes();
String classPathIndex = (String) manifestAttributes.get("Spring-Boot-Classpath-Index");
if (classPathIndex != null) {
Set<String> libraryNames = this.writtenLibraries.keySet();
List<String> lines = libraryNames.stream().map((line) -> "- \"" + line + "\"").toList();
ZipEntryContentWriter writer = ZipEntryContentWriter.fromLines((BootZipCopyAction.this.encoding != null)
? BootZipCopyAction.this.encoding : StandardCharsets.UTF_8.name(), lines);
writeEntry(classPathIndex, writer, true);
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeClassPathIndexIfNecessary() do?
writeClassPathIndexIfNecessary() is a function in the spring-boot codebase.
What does writeClassPathIndexIfNecessary() call?
writeClassPathIndexIfNecessary() calls 1 function(s): writeEntry.
What calls writeClassPathIndexIfNecessary()?
writeClassPathIndexIfNecessary() is called by 1 function(s): finish.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free