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

loaderIsWrittenFirstThenApplicationClassesThenLibraries() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  23a6ac8e_0402_0859_e583_d28b52ba753d["loaderIsWrittenFirstThenApplicationClassesThenLibraries()"]
  75b14524_6474_4bf9_dd04_f0e5f1303105["jarFile()"]
  23a6ac8e_0402_0859_e583_d28b52ba753d -->|calls| 75b14524_6474_4bf9_dd04_f0e5f1303105
  6735338a_2770_d6bf_59a2_0a9fa6f0b3fc["executeTask()"]
  23a6ac8e_0402_0859_e583_d28b52ba753d -->|calls| 6735338a_2770_d6bf_59a2_0a9fa6f0b3fc
  5645c4d4_f43b_2768_d537_d5683623dc04["getEntryNames()"]
  23a6ac8e_0402_0859_e583_d28b52ba753d -->|calls| 5645c4d4_f43b_2768_d537_d5683623dc04
  style 23a6ac8e_0402_0859_e583_d28b52ba753d 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 430–445

	@Test
	void loaderIsWrittenFirstThenApplicationClassesThenLibraries() throws IOException {
		this.task.getMainClass().set("com.example.Main");
		File classpathDirectory = new File(this.temp, "classes");
		File applicationClass = new File(classpathDirectory, "com/example/Application.class");
		applicationClass.getParentFile().mkdirs();
		applicationClass.createNewFile();
		this.task.classpath(classpathDirectory, jarFile("first-library.jar"), jarFile("second-library.jar"),
				jarFile("third-library.jar"));
		this.task.requiresUnpack("second-library.jar");
		executeTask();
		assertThat(getEntryNames(this.task.getArchiveFile().get().getAsFile())).containsSubsequence(
				"org/springframework/boot/loader/", this.classesPath + "com/example/Application.class",
				this.libPath + "first-library.jar", this.libPath + "second-library.jar",
				this.libPath + "third-library.jar");
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free