Skip to content

Commit

Permalink
Capabilities are not persisted
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 4, 2021
1 parent 2c069ce commit 8d2f52b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class PersistentAppModel implements Serializable {
private Set<AppArtifactKey> lesserPriorityArtifacts;
private Set<AppArtifactKey> localProjectArtifacts;
private Map<String, String> platformProperties;
private Map<String, CapabilityContract> capabilitiesContracts;
private String userProvidersDirectory;

public PersistentAppModel(String baseName, Map<AppArtifactKey, List<String>> paths, AppModel appModel,
Expand All @@ -54,6 +55,7 @@ public PersistentAppModel(String baseName, Map<AppArtifactKey, List<String>> pat
parentFirstArtifacts = new HashSet<>(appModel.getParentFirstArtifacts());
runnerParentFirstArtifacts = new HashSet<>(appModel.getRunnerParentFirstArtifacts());
lesserPriorityArtifacts = new HashSet<>(appModel.getLesserPriorityArtifacts());
capabilitiesContracts = new HashMap<>(appModel.getCapabilityContracts());
}

public String getUserProvidersDirectory() {
Expand Down Expand Up @@ -85,6 +87,7 @@ public AppModel getAppModel(Path root) {
for (AppArtifactKey i : localProjectArtifacts) {
model.addLocalProjectArtifact(i);
}
model.setCapabilitiesContracts(capabilitiesContracts);
final PlatformImportsImpl pi = new PlatformImportsImpl();
pi.setPlatformProperties(platformProperties);
model.setPlatformImports(pi);
Expand Down

0 comments on commit 8d2f52b

Please sign in to comment.