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

unpackCommentIsAddedToEntryIdentifiedByASpec() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0b8a94ed_d576_95b9_d785_e6b4eb66220b["unpackCommentIsAddedToEntryIdentifiedByASpec()"]
  75b14524_6474_4bf9_dd04_f0e5f1303105["jarFile()"]
  0b8a94ed_d576_95b9_d785_e6b4eb66220b -->|calls| 75b14524_6474_4bf9_dd04_f0e5f1303105
  6735338a_2770_d6bf_59a2_0a9fa6f0b3fc["executeTask()"]
  0b8a94ed_d576_95b9_d785_e6b4eb66220b -->|calls| 6735338a_2770_d6bf_59a2_0a9fa6f0b3fc
  style 0b8a94ed_d576_95b9_d785_e6b4eb66220b 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 294–304

	@Test
	void unpackCommentIsAddedToEntryIdentifiedByASpec() throws IOException {
		this.task.getMainClass().set("com.example.Main");
		this.task.classpath(jarFile("one.jar"), jarFile("two.jar"));
		this.task.requiresUnpack((element) -> element.getName().endsWith("two.jar"));
		executeTask();
		try (JarFile jarFile = new JarFile(this.task.getArchiveFile().get().getAsFile())) {
			assertThat(jarFile.getEntry(this.libPath + "two.jar").getComment()).isEqualTo("UNPACK");
			assertThat(jarFile.getEntry(this.libPath + "one.jar").getComment()).isNull();
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does unpackCommentIsAddedToEntryIdentifiedByASpec() do?
unpackCommentIsAddedToEntryIdentifiedByASpec() is a function in the spring-boot codebase.
What does unpackCommentIsAddedToEntryIdentifiedByASpec() call?
unpackCommentIsAddedToEntryIdentifiedByASpec() calls 2 function(s): executeTask, jarFile.

Analyze Your Own Codebase

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

Try Supermodel Free