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

sourceResourcesCanBeUsed() — spring-boot Function Reference

Architecture documentation for the sourceResourcesCanBeUsed() function in BootRunIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  78757394_9706_4e71_6ad3_d8279155dff8["sourceResourcesCanBeUsed()"]
  b0962c18_0cd6_ab0b_40fc_652f0c4df7c6["copyClasspathApplication()"]
  78757394_9706_4e71_6ad3_d8279155dff8 -->|calls| b0962c18_0cd6_ab0b_40fc_652f0c4df7c6
  c6803ebb_0278_3f04_79f3_f37d40703984["canonicalPathOf()"]
  78757394_9706_4e71_6ad3_d8279155dff8 -->|calls| c6803ebb_0278_3f04_79f3_f37d40703984
  style 78757394_9706_4e71_6ad3_d8279155dff8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootRunIntegrationTests.java lines 64–74

	@TestTemplate
	void sourceResourcesCanBeUsed() throws IOException {
		copyClasspathApplication();
		BuildResult result = this.gradleBuild.build("bootRun");
		BuildTask task = result.task(":bootRun");
		assertThat(task).isNotNull();
		assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
		assertThat(result.getOutput()).contains("1. " + canonicalPathOf("src/main/resources"));
		assertThat(result.getOutput()).contains("2. " + canonicalPathOf("build/classes/java/main"));
		assertThat(result.getOutput()).doesNotContain(canonicalPathOf("build/resources/main"));
	}

Domain

Subdomains

Frequently Asked Questions

What does sourceResourcesCanBeUsed() do?
sourceResourcesCanBeUsed() is a function in the spring-boot codebase.
What does sourceResourcesCanBeUsed() call?
sourceResourcesCanBeUsed() calls 2 function(s): canonicalPathOf, copyClasspathApplication.

Analyze Your Own Codebase

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

Try Supermodel Free