diff options
author | Igor Fedorenko | 2011-07-14 10:36:02 +0000 |
---|---|---|
committer | Igor Fedorenko | 2011-07-14 10:36:02 +0000 |
commit | d9cec9237a770db8494045c1ebca4f0c684b67ce (patch) | |
tree | cdfcac82024a1580c07965b4f6d11b7209a0ebe4 | |
parent | 0d332c2fa822aaca9cf9119981074ee9684840a2 (diff) | |
download | m2e-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.java | 4 |
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); |