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

configureCreateStartScripts() — spring-boot Function Reference

Architecture documentation for the configureCreateStartScripts() function in ApplicationPluginAction.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  1df2c97a_af9b_d39c_9164_57f741d8cee9["configureCreateStartScripts()"]
  bfa77d16_8b80_0139_ddea_1d50a893f40c["execute()"]
  bfa77d16_8b80_0139_ddea_1d50a893f40c -->|calls| 1df2c97a_af9b_d39c_9164_57f741d8cee9
  c2ccd1b1_491e_e575_2a3b_d5ba95443154["loadResource()"]
  1df2c97a_af9b_d39c_9164_57f741d8cee9 -->|calls| c2ccd1b1_491e_e575_2a3b_d5ba95443154
  bc1f257f_91e4_fd36_2734_6a313ee1a47f["artifactFilesToLibCopySpec()"]
  1df2c97a_af9b_d39c_9164_57f741d8cee9 -->|calls| bc1f257f_91e4_fd36_2734_6a313ee1a47f
  style 1df2c97a_af9b_d39c_9164_57f741d8cee9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/ApplicationPluginAction.java lines 79–97

	private void configureCreateStartScripts(Project project, JavaApplication javaApplication,
			Distribution distribution, CreateStartScripts createStartScripts) {
		createStartScripts
			.setDescription("Generates OS-specific start scripts to run the project as a Spring Boot application.");
		((TemplateBasedScriptGenerator) createStartScripts.getUnixStartScriptGenerator())
			.setTemplate(project.getResources().getText().fromString(loadResource("/unixStartScript.txt")));
		((TemplateBasedScriptGenerator) createStartScripts.getWindowsStartScriptGenerator())
			.setTemplate(project.getResources().getText().fromString(loadResource("/windowsStartScript.txt")));
		project.getConfigurations().all((configuration) -> {
			if ("bootArchives".equals(configuration.getName())) {
				distribution.getContents().with(artifactFilesToLibCopySpec(project, configuration));
				createStartScripts.setClasspath(configuration.getArtifacts().getFiles());
			}
		});
		createStartScripts.getConventionMapping()
			.map("outputDir", () -> project.getLayout().getBuildDirectory().dir("bootScripts").get().getAsFile());
		createStartScripts.getConventionMapping().map("applicationName", javaApplication::getApplicationName);
		createStartScripts.getConventionMapping().map("defaultJvmOpts", javaApplication::getApplicationDefaultJvmArgs);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does configureCreateStartScripts() do?
configureCreateStartScripts() is a function in the spring-boot codebase.
What does configureCreateStartScripts() call?
configureCreateStartScripts() calls 2 function(s): artifactFilesToLibCopySpec, loadResource.
What calls configureCreateStartScripts()?
configureCreateStartScripts() is called by 1 function(s): execute.

Analyze Your Own Codebase

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

Try Supermodel Free