From 1aa45c8bb327ad87b745700ad98093c90fd94229 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sun, 14 Jan 2007 06:00:29 +0000 Subject: [PATCH] finishing up details. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1752 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/LargeText.java | 6 +++++- core/src/main/java/hudson/scm/CVSSCM.java | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/LargeText.java b/core/src/main/java/hudson/model/LargeText.java index 835f4f93ff..ff238ed947 100644 --- a/core/src/main/java/hudson/model/LargeText.java +++ b/core/src/main/java/hudson/model/LargeText.java @@ -34,7 +34,7 @@ public class LargeText { } private final Source source; - private final boolean completed; + private volatile boolean completed; public LargeText(final File file, boolean completed) { this.source = new Source() { @@ -70,6 +70,10 @@ public class LargeText { this.completed = completed; } + public void markAsComplete() { + completed = true; + } + /** * Writes the tail portion of the file to the {@link Writer}. * diff --git a/core/src/main/java/hudson/scm/CVSSCM.java b/core/src/main/java/hudson/scm/CVSSCM.java index d1f0cb80a5..dd338012a7 100644 --- a/core/src/main/java/hudson/scm/CVSSCM.java +++ b/core/src/main/java/hudson/scm/CVSSCM.java @@ -1147,6 +1147,7 @@ public class CVSSCM extends AbstractCVSFamilySCM implements Serializable { } listener.getLogger().println("Completed"); + text.markAsComplete(); } } -- GitLab