Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tycho-4.0.x] Check if file (still)is present in the ZipComparator #3308

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
Expand Down Expand Up @@ -99,9 +100,16 @@ public ZipArtifactDelta(Map<String, ? extends ArtifactDelta> members, File basel

@Override
public void writeDetails(File basedir) throws IOException {
basedir.mkdirs();
super.writeDetails(basedir);
Files.copy(baseline.toPath(), basedir.toPath().resolve("baseline-" + baseline.getName()));
Files.copy(reactor.toPath(), basedir.toPath().resolve("build-" + reactor.getName()));
if (baseline.isFile()) {
Files.copy(baseline.toPath(), basedir.toPath().resolve("baseline-" + baseline.getName()),
StandardCopyOption.REPLACE_EXISTING);
}
if (reactor.isFile()) {
Files.copy(reactor.toPath(), basedir.toPath().resolve("build-" + reactor.getName()),
StandardCopyOption.REPLACE_EXISTING);
}
}

}
Expand Down