Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2022-05-17 12:00:55 +0000
committerEd Merks2022-05-17 12:00:55 +0000
commit1956c661bd97e6c8324d9033ffa0aec34289b0ed (patch)
treeb749ffbace5ff14095dbca5ac413073289a14b5a
parent60fa5d2e588231717fcb191f1662ea60b313de8e (diff)
downloadjustj.tools-master.tar.gz
justj.tools-master.tar.xz
justj.tools-master.zip
[Releng] Further generalize the update site generatorHEADmaster
Fix problem with creating product digests in the right/target location.
-rw-r--r--plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java b/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
index 1374803..ff9afe1 100644
--- a/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
+++ b/plugins/org.eclipse.justj.p2/src/org/eclipse/justj/p2/UpdateSiteGenerator.java
@@ -439,7 +439,7 @@ public class UpdateSiteGenerator
{
if (verbose)
{
- System.out.println("Mirroring '" + source + "' to '" + destination);
+ System.out.println("Mirroring '" + source + "' to '" + destination + "'");
}
MirrorApplication mirrorApplication = new MirrorApplication()
@@ -470,11 +470,15 @@ public class UpdateSiteGenerator
Path productTarget = destination.resolve(product.getFileName());
if (verbose)
{
- System.out.println("Mirroring product '" + product + "' to '" + productTarget);
+ System.out.println("Mirroring product '" + product + "' to '" + productTarget + "'");
}
Files.copy(product, productTarget);
- createDigest(product, "SHA-512");
+ Path digest = createDigest(productTarget, "SHA-512");
+ if (verbose)
+ {
+ System.out.println("Created digest '" + digest + "'");
+ }
}
catch (IOException e)
{
@@ -720,11 +724,15 @@ public class UpdateSiteGenerator
Path productTarget = destination.resolve(product.getFileName());
if (verbose)
{
- System.out.println("Mirroring latest product '" + product + "' to '" + productTarget);
+ System.out.println("Mirroring latest product '" + product + "' to '" + productTarget + ".");
}
Files.copy(product, productTarget, StandardCopyOption.REPLACE_EXISTING);
- createDigest(product, "SHA-512");
+ Path digest = createDigest(productTarget, "SHA-512");
+ if (verbose)
+ {
+ System.out.println("Created digest '" + digest + "'");
+ }
}
catch (IOException e)
{

Back to the top