-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for spring spel expressions in profiles.
See https://docs.spring.io/spring-framework/reference/core/expressions.html. Profiles are parsed as spel expression templates with EncoreJob as root object. Added field profileParams to EncoreJob to be used in profile templates.
- Loading branch information
Showing
6 changed files
with
109 additions
and
32 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
encore-common/src/main/kotlin/se/svt/oss/encore/config/ProfileProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-FileCopyrightText: 2020 Sveriges Television AB | ||
// | ||
// SPDX-License-Identifier: EUPL-1.2 | ||
|
||
package se.svt.oss.encore.config | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties | ||
import org.springframework.core.io.Resource | ||
|
||
@ConfigurationProperties("profile") | ||
data class ProfileProperties( | ||
val location: Resource, | ||
val spelExpressionPrefix: String = "#{", | ||
val spelExpressionSuffix: String = "}", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters