mirror of https://github.com/apache/maven.git
removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1407920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d698618204
commit
1a6a6bd2e3
|
@ -39,9 +39,7 @@ import org.apache.maven.InternalErrorException;
|
|||
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,12 +319,15 @@ 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) {
|
||||
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
|
||||
//
|
||||
|
@ -335,14 +336,14 @@ public class MavenCli
|
|||
|
||||
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() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue