[ 
https://jira.codehaus.org/browse/MNG-5176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated MNG-5176:
--------------------------------

    Attachment: MNG-5176.patch

I have updated the patch again.

maven.git

{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Maven ...................................... SUCCESS [ 13.717 s]
[INFO] Maven Model ....................................... SUCCESS [ 13.419 s]
[INFO] Maven Artifact .................................... SUCCESS [  7.287 s]
[INFO] Maven Plugin API .................................. SUCCESS [ 10.522 s]
[INFO] Maven Model Builder ............................... SUCCESS [ 15.180 s]
[INFO] Maven Settings .................................... SUCCESS [  5.521 s]
[INFO] Maven Settings Builder ............................ SUCCESS [  6.470 s]
[INFO] Maven Repository Metadata Model ................... SUCCESS [  4.796 s]
[INFO] Maven Aether Provider ............................. SUCCESS [ 14.340 s]
[INFO] Maven Core ........................................ SUCCESS [ 51.760 s]
[INFO] Maven Compat ...................................... SUCCESS [ 32.400 s]
[INFO] Maven Embedder .................................... SUCCESS [ 11.244 s]
[INFO] Apache Maven Distribution ......................... SUCCESS [ 17.697 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:24 min
[INFO] Finished at: 2014-01-30T13:48:26+01:00
[INFO] Final Memory: 55M/278M
[INFO] ------------------------------------------------------------------------
{noformat}

and

maven-scm.git

{noformat}
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven SCM ......................................... SUCCESS [01:37 min]
[INFO] Maven SCM API ..................................... SUCCESS [ 49.921 s]
[INFO] Maven SCM Managers ................................ SUCCESS [  5.292 s]
[INFO] Maven SCM Manager for Plexus ...................... SUCCESS [ 19.543 s]
[INFO] Maven SCM Test .................................... SUCCESS [ 43.112 s]
[INFO] Maven SCM Providers ............................... SUCCESS [  5.782 s]
[INFO] Maven SCM AccuRev Provider ........................ SUCCESS [ 46.710 s]
[INFO] Maven SCM Bazaar Provider ......................... SUCCESS [ 31.212 s]
[INFO] Maven SCM Clearcase Provider ...................... SUCCESS [ 38.130 s]
[INFO] Maven SCM CVS Provider - Parent ................... SUCCESS [  5.618 s]
[INFO] Maven SCM CVS Provider TCK tests .................. SUCCESS [ 26.636 s]
[INFO] Maven SCM CVS Provider - Common library ........... SUCCESS [ 49.035 s]
[INFO] Maven SCM CVS Provider - CVS Executable Impl. ..... SUCCESS [ 28.367 s]
[INFO] Maven SCM CVS Provider - CVS Java Impl. ........... SUCCESS [ 38.279 s]
[INFO] Maven SCM Mercurial (Hg) Provider ................. SUCCESS [ 37.785 s]
[INFO] Maven SCM Git Provider - Parent ................... SUCCESS [  5.479 s]
[INFO] Maven SCM Git Provider - Common library ........... SUCCESS [ 30.737 s]
[INFO] Maven SCM Git Provider TCK Tests .................. SUCCESS [ 29.046 s]
[INFO] Maven SCM Git Provider - Git Executable Impl. ..... SUCCESS [ 49.699 s]
[INFO] Maven SCM Git Provider - JGit Impl. ............... SUCCESS [ 38.159 s]
[INFO] Maven SCM Local Provider .......................... SUCCESS [ 33.002 s]
[INFO] Maven SCM Perforce Provider ....................... SUCCESS [ 39.655 s]
[INFO] Maven SCM Starteam Provider ....................... SUCCESS [ 36.574 s]
[INFO] Maven SCM Subversion Provider - Parent ............ SUCCESS [  5.515 s]
[INFO] Maven SCM Subversion Provider - Common library .... SUCCESS [ 30.390 s]
[INFO] Maven SCM Subversion Provider TCK Tests ........... SUCCESS [ 23.621 s]
[INFO] Maven SCM Subversion Provider - SVN Executable Impl.  SUCCESS [ 50.651 s]
[INFO] Maven SCM Synergy Provider ........................ SUCCESS [ 34.258 s]
[INFO] Maven SCM Visual Source Safe Provider ............. SUCCESS [ 36.695 s]
[INFO] Maven SCM TFS Provider ............................ SUCCESS [ 31.799 s]
[INFO] Maven SCM MKS Integrity Provider .................. SUCCESS [ 45.573 s]
[INFO] Maven SCM Jazz/Rational Team Concert Provider ..... SUCCESS [ 39.437 s]
[INFO] Maven SCM Standard Providers ...................... SUCCESS [ 10.255 s]
[INFO] Maven SCM Client .................................. SUCCESS [ 29.600 s]
[INFO] Maven SCM Plugin .................................. SUCCESS [01:23 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20:07 min
[INFO] Finished at: 2014-01-30T15:32:32+01:00
[INFO] Final Memory: 202M/564M
[INFO] ------------------------------------------------------------------------
{noformat}

I think this looks very nice and well readable.

> Print build times in an ISO 8601-style manner
> ---------------------------------------------
>
>                 Key: MNG-5176
>                 URL: https://jira.codehaus.org/browse/MNG-5176
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Logging
>    Affects Versions: 2.2.1, 3.0.3
>         Environment: Maven 2.2.1 and 3.0.3
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>             Fix For: 3.2
>
>         Attachments: MNG-5176.patch, MNG-5176.patch, MNG-5176.patch
>
>
> The current output of build times is hard to read and does not follow any 
> standard. I have patched branch 2.2.x and 3 trunk to follow ISO 8601-style 
> date/time formats.
> My patches need less code compared to the current solution. I had the 
> following ideas in mind:
> 1. Display times in the same proportional format.
> 2. hour display is fixed to max 24 h as in ISO defined.
> 3. Days are directly integrated, not brain math necessary anymore. Though 
> this should be a rare case.
> 3. remove the smallest component if a bigger one is added.
> 4. Easier to parse, predictable output.
> More over, I have changed the finish and total time to ISO too. I did not 
> touch the finish time in Maven 2.2.x because it is alphanumeric. I'd rather 
> prefer that as total time but this is maybe a matter of taste and harder to 
> parse.
> This is a real output:
> {noformat}
> [INFO] Building tar : 
> /.amd_mnt/blnn728x/home/osipovmi/Projekte/maven-3/apache-maven/target/apache-maven-3.0.4-SNAPSHOT-bin.tar.gz
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Maven ...................................... SUCCESS [00:04.732]
> [INFO] Maven Model ....................................... SUCCESS [00:06.332]
> [INFO] Maven Artifact .................................... SUCCESS [00:02.551]
> [INFO] Maven Plugin API .................................. SUCCESS [00:03.855]
> [INFO] Maven Model Builder ............................... SUCCESS [00:06.708]
> [INFO] Maven Settings .................................... SUCCESS [00:02.292]
> [INFO] Maven Settings Builder ............................ SUCCESS [00:02.138]
> [INFO] Maven Repository Metadata Model ................... SUCCESS [00:01.931]
> [INFO] Maven Aether Provider ............................. SUCCESS [00:02.442]
> [INFO] Maven Core ........................................ SUCCESS [00:28.509]
> [INFO] Maven Compat ...................................... SUCCESS [00:20.260]
> [INFO] Maven Embedder .................................... SUCCESS [00:03.478]
> [INFO] Maven Distribution ................................ SUCCESS [00:26.715]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 01:52.618
> [INFO] Finished at: 2011-09-19 14:25:24
> [INFO] Final Memory: 36M/144M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> A crafted output with all formats would look like this:
> {noformat}
> [INFO] Building tar : 
> /.amd_mnt/blnn728x/home/osipovmi/Projekte/maven-3/apache-maven/target/apache-maven-3.0.4-SNAPSHOT-bin.tar.gz
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Maven ...................................... SUCCESS [1 d 03:04]
> [INFO] Maven Model ....................................... SUCCESS [01:00:06]
> [INFO] Maven Artifact .................................... SUCCESS [00:02.551]
> [INFO] Maven Plugin API .................................. SUCCESS [00:03.855]
> [INFO] Maven Model Builder ............................... SUCCESS [00:06.708]
> [INFO] Maven Settings .................................... SUCCESS [00:02.292]
> [INFO] Maven Settings Builder ............................ SUCCESS [00:02.138]
> [INFO] Maven Repository Metadata Model ................... SUCCESS [00:01.931]
> [INFO] Maven Aether Provider ............................. SUCCESS [00:02.442]
> [INFO] Maven Core ........................................ SUCCESS [00:28.509]
> [INFO] Maven Compat ...................................... SUCCESS [00:20.260]
> [INFO] Maven Embedder .................................... SUCCESS [00:03.478]
> [INFO] Maven Distribution ................................ SUCCESS [00:26.715]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 d 03:05
> [INFO] Finished at: 2011-09-19 14:25:24
> [INFO] Final Memory: 36M/144M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> Since most build are below an hour, they are way easier to read.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to