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

addActiveProfileArgument() — spring-boot Function Reference

Architecture documentation for the addActiveProfileArgument() function in AbstractRunMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  5464a157_765f_843c_a813_525e9fe297de["addActiveProfileArgument()"]
  153cdffc_5a05_8080_4c5d_913ea53957b9["resolveApplicationArguments()"]
  153cdffc_5a05_8080_4c5d_913ea53957b9 -->|calls| 5464a157_765f_843c_a813_525e9fe297de
  47188f5f_cc3f_0091_dfcf_86ec9540f84b["logArguments()"]
  5464a157_765f_843c_a813_525e9fe297de -->|calls| 47188f5f_cc3f_0091_dfcf_86ec9540f84b
  style 5464a157_765f_843c_a813_525e9fe297de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java lines 351–363

	private void addActiveProfileArgument(RunArguments arguments) {
		if (this.profiles != null && this.profiles.length > 0) {
			StringBuilder arg = new StringBuilder("--spring.profiles.active=");
			for (int i = 0; i < this.profiles.length; i++) {
				arg.append(this.profiles[i]);
				if (i < this.profiles.length - 1) {
					arg.append(",");
				}
			}
			arguments.getArgs().addFirst(arg.toString());
			logArguments("Active profile", this.profiles);
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does addActiveProfileArgument() do?
addActiveProfileArgument() is a function in the spring-boot codebase.
What does addActiveProfileArgument() call?
addActiveProfileArgument() calls 1 function(s): logArguments.
What calls addActiveProfileArgument()?
addActiveProfileArgument() is called by 1 function(s): resolveApplicationArguments.

Analyze Your Own Codebase

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

Try Supermodel Free