-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak how DockerFile buildArgs are handled internally, and change out…
…put to match C# output (as a map, not an array)
- Loading branch information
1 parent
0fb202b
commit 13a85fd
Showing
3 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
...aspire4j/src/main/java/com/microsoft/aspire/resources/annotations/KeyValueAnnotation.java
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,36 @@ | ||
package com.microsoft.aspire.resources.annotations; | ||
|
||
import java.util.Objects; | ||
|
||
public class KeyValueAnnotation implements ResourceAnnotation { | ||
private final String type; | ||
private final String key; | ||
private final Object value; | ||
|
||
public KeyValueAnnotation(String type, String key, Object value) { | ||
this.type = Objects.requireNonNull(type, "Type cannot be null"); | ||
this.key = Objects.requireNonNull(key, "Key cannot be null"); | ||
this.value = Objects.requireNonNull(value, "Value cannot be null"); | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public Object getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "KeyValueAnnotation{" + | ||
"type='" + type + '\'' + | ||
", key='" + key + '\'' + | ||
", value='" + value + '\'' + | ||
'}'; | ||
} | ||
} |
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