Skip to content

Commit

Permalink
Stop removing artifact-local references during import
Browse files Browse the repository at this point in the history
The import process used to remove artifact references to local files stored inside the artifact.
This implies that during runtime the artifact references attached to a TArtifactTemplate obtained
from an IRepository are not necessarily the references that would be stored in the exported version.

That behaviour would require adjustments for the deployment process of a CSAR that duplicate the
code used during export and for unit testing within the winery (cf. BackendUtils#synchronizeReferences).
It's cleaner to allow the ArtifactReference information to be generally applicable instead of
working around the current behaviour.

Signed-off-by: Clemens Lieb <vogel612@gmx.de>
  • Loading branch information
Vogel612 committed Nov 14, 2019
1 parent 95da72e commit f8a9c22
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,6 @@ private void adjustArtifactTemplate(Path rootPath, TOSCAMetaFile tmf, ArtifactTe
continue;
}

// we remove the current element as it will be handled during the export
iterator.remove();

Path path = rootPath.resolve(reference);
if (!Files.exists(path)) {
errors.add(String.format("Reference %1$s not found", reference));
Expand Down

0 comments on commit f8a9c22

Please sign in to comment.