maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1407920 - in /maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli: MavenCli.java transfer/BatchModeMavenTransferListener.java
Date Sun, 11 Nov 2012 05:33:07 GMT
Author: hboutemy
Date: Sun Nov 11 05:33:06 2012
New Revision: 1407920

URL: http://svn.apache.org/viewvc?rev=1407920&view=rev
Log:
removed unused imports

Modified:
    maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
    maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java

Modified: maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java?rev=1407920&r1=1407919&r2=1407920&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java (original)
+++ maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java Sun
Nov 11 05:33:06 2012
@@ -39,9 +39,7 @@ import org.apache.maven.InternalErrorExc
 import org.apache.maven.Maven;
 import org.apache.maven.cli.event.DefaultEventSpyContext;
 import org.apache.maven.cli.event.ExecutionEventLogger;
-import org.apache.maven.cli.logging.PrintStreamLogger;
 import org.apache.maven.cli.logging.Slf4jLoggerManager;
-import org.apache.maven.cli.transfer.BatchModeMavenTransferListener;
 import org.apache.maven.cli.transfer.ConsoleMavenTransferListener;
 import org.apache.maven.cli.transfer.QuietMavenTransferListener;
 import org.apache.maven.cli.transfer.Slf4jMavenTransferListener;
@@ -321,28 +319,31 @@ public class MavenCli
         {
             File logFile = new File( cliRequest.commandLine.getOptionValue( CLIManager.LOG_FILE
) );
             logFile = resolveFile( logFile, cliRequest.workingDirectory );
-            System.setProperty("org.slf4j.simpleLogger.logFile", logFile.getAbsolutePath());
-            try {
-              PrintStream ps = new PrintStream(new FileOutputStream(logFile));
-              System.setOut(ps);
-              System.setErr(ps);
-            } catch (FileNotFoundException e) {
-              //
-              // Ignore
-              //
+            System.setProperty( "org.slf4j.simpleLogger.logFile", logFile.getAbsolutePath()
);
+            try
+            {
+                PrintStream ps = new PrintStream( new FileOutputStream( logFile ) );
+                System.setOut( ps );
+                System.setErr( ps );
+            }
+            catch ( FileNotFoundException e )
+            {
+                //
+                // Ignore
+                //
             }
         }
 
-        plexusLoggerManager = new Slf4jLoggerManager();       
+        plexusLoggerManager = new Slf4jLoggerManager();
         slf4jLoggerFactory = LoggerFactory.getILoggerFactory();
-        slf4jLogger = slf4jLoggerFactory.getLogger(this.getClass().getName());
+        slf4jLogger = slf4jLoggerFactory.getLogger( this.getClass().getName() );
     }
 
     private void version( CliRequest cliRequest )
     {
         if ( cliRequest.debug || cliRequest.commandLine.hasOption( CLIManager.SHOW_VERSION
) )
         {
-            System.out.print(CLIReportingUtils.showVersion());
+            System.out.print( CLIReportingUtils.showVersion() );
         }
     }
 

Modified: maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java?rev=1407920&r1=1407919&r2=1407920&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java
(original)
+++ maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/transfer/BatchModeMavenTransferListener.java
Sun Nov 11 05:33:06 2012
@@ -2,8 +2,6 @@ package org.apache.maven.cli.transfer;
 
 import java.io.PrintStream;
 
-import org.slf4j.Logger;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file



Mime
View raw message