Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-07-14 10:36:02 +0000
committerIgor Fedorenko2011-07-14 10:36:02 +0000
commitd9cec9237a770db8494045c1ebca4f0c684b67ce (patch)
treecdfcac82024a1580c07965b4f6d11b7209a0ebe4
parent0d332c2fa822aaca9cf9119981074ee9684840a2 (diff)
downloadm2e-core-d9cec9237a770db8494045c1ebca4f0c684b67ce.tar.gz
m2e-core-d9cec9237a770db8494045c1ebca4f0c684b67ce.tar.xz
m2e-core-d9cec9237a770db8494045c1ebca4f0c684b67ce.zip
log build participant execution time
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
index 169fa3b8..b08ac264 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilder.java
@@ -174,6 +174,7 @@ public class MavenBuilder extends IncrementalProjectBuilder {
participant.setGetDeltaCallback(getDeltaCallback);
participant.setSession(session);
participant.setBuildContext(buildContext);
+ long executionStartTime = System.currentTimeMillis();
try {
if(FULL_BUILD == kind || delta != null || participant.callOnEmptyDelta()) {
Set<IProject> sub = participant.build(kind, monitor);
@@ -185,6 +186,9 @@ public class MavenBuilder extends IncrementalProjectBuilder {
log.debug("Exception in build participant {}", participant.getClass().getName(), e);
buildErrors.put(e, mojoExecutionKey);
} finally {
+ log.debug("Finished executing build participant {} for plugin execution {} in {} ms", new Object[] {
+ participant.getClass().getName(), mojoExecutionKey.toString(),
+ System.currentTimeMillis() - executionStartTime});
participant.setMavenProjectFacade(null);
participant.setGetDeltaCallback(null);
participant.setSession(null);

Back to the top