Skip to content

Commit 22c4a8e

Browse files
committed
Move all container to test
1 parent 604fd18 commit 22c4a8e

File tree

3 files changed

+18
-21
lines changed

3 files changed

+18
-21
lines changed

pom.xml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,12 @@
5151
</contributors>
5252

5353
<dependencies>
54-
<!-- Plexus container dependencies -->
54+
<!-- JSR330 -->
5555
<dependency>
5656
<groupId>javax.inject</groupId>
5757
<artifactId>javax.inject</artifactId>
5858
<version>1</version>
5959
</dependency>
60-
<dependency>
61-
<groupId>org.eclipse.sisu</groupId>
62-
<artifactId>org.eclipse.sisu.plexus</artifactId>
63-
<version>${sisuVersion}</version>
64-
<scope>provided</scope>
65-
</dependency>
66-
<dependency>
67-
<groupId>com.google.inject</groupId>
68-
<artifactId>guice</artifactId>
69-
<version>5.1.0</version>
70-
<scope>provided</scope>
71-
</dependency>
7260
<!-- Plexus dependencies -->
7361
<dependency>
7462
<groupId>org.codehaus.plexus</groupId>
@@ -138,6 +126,19 @@
138126
<artifactId>slf4j-simple</artifactId>
139127
<version>${slf4jVersion}</version>
140128
</dependency>
129+
<!-- Plexus container dependencies -->
130+
<dependency>
131+
<groupId>org.eclipse.sisu</groupId>
132+
<artifactId>org.eclipse.sisu.plexus</artifactId>
133+
<version>${sisuVersion}</version>
134+
<scope>test</scope>
135+
</dependency>
136+
<dependency>
137+
<groupId>com.google.inject</groupId>
138+
<artifactId>guice</artifactId>
139+
<version>5.1.0</version>
140+
<scope>test</scope>
141+
</dependency>
141142
</dependencies>
142143

143144
<build>

src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
import org.codehaus.plexus.archiver.ArchiverException;
4949
import org.codehaus.plexus.archiver.zip.ConcurrentJarCreator;
5050
import org.codehaus.plexus.archiver.zip.ZipArchiver;
51-
import org.codehaus.plexus.logging.Logger;
52-
import org.codehaus.plexus.logging.console.ConsoleLogger;
5351

5452
/**
5553
* Base class for tasks that build archives in JAR file format.
@@ -762,19 +760,17 @@ protected static String findJarName( String fileName, String[] classpath )
762760
*
763761
* @throws java.io.IOException
764762
*/
765-
protected static void grabFilesAndDirs( String file, List<String> dirs, List<String> files )
763+
private void grabFilesAndDirs( String file, List<String> dirs, List<String> files )
766764
throws IOException
767765
{
768766
File zipFile = new File( file );
769767
if ( !zipFile.exists() )
770768
{
771-
Logger logger = new ConsoleLogger( Logger.LEVEL_INFO, "console" );
772-
logger.error( "JarArchive skipping non-existing file: " + zipFile.getAbsolutePath() );
769+
getLogger().error( "JarArchive skipping non-existing file: " + zipFile.getAbsolutePath() );
773770
}
774771
else if ( zipFile.isDirectory() )
775772
{
776-
Logger logger = new ConsoleLogger( Logger.LEVEL_INFO, "console" );
777-
logger.info( "JarArchiver skipping indexJar " + zipFile + " because it is not a jar" );
773+
getLogger().info( "JarArchiver skipping indexJar " + zipFile + " because it is not a jar" );
778774
}
779775
else
780776
{

src/main/java/org/codehaus/plexus/archiver/util/FilterSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.codehaus.plexus.archiver.ArchiveFileFilter;
66
import org.codehaus.plexus.archiver.Archiver;
77
import org.codehaus.plexus.components.io.fileselectors.FileSelector;
8-
import org.codehaus.plexus.logging.Logger;
8+
import org.slf4j.Logger;
99

1010
/**
1111
* @deprecated Use {@link FileSelector} and {@link Archiver#addFileSet}.

0 commit comments

Comments
 (0)