Issue 128: temporarily adding log4j until we have a commons-logging adapter in jclouds

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2433 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-12-15 05:56:38 +00:00
parent 43b9daf617
commit 3d2784e4d2
3 changed files with 11 additions and 9 deletions

View File

@ -20,19 +20,20 @@
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-vfs</artifactId> <artifactId>commons-vfs</artifactId>
<version>2.0-SNAPSHOT</version> <version>2.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<!-- should be transitive from above, but isn't -->
<!-- should be transitive from above, but aren't -->
<dependency> <dependency>
<groupId>commons-logging</groupId> <groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId> <artifactId>commons-logging</artifactId>
<version>1.1</version> <version>1.1</version>
</dependency> </dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-vfs</artifactId> <artifactId>commons-vfs</artifactId>

View File

@ -44,6 +44,7 @@ import org.jclouds.blobstore.BlobStore;
import org.jclouds.blobstore.BlobStoreContextFactory; import org.jclouds.blobstore.BlobStoreContextFactory;
import org.jclouds.domain.Credentials; import org.jclouds.domain.Credentials;
import org.jclouds.http.HttpUtils; import org.jclouds.http.HttpUtils;
import org.jclouds.logging.log4j.config.Log4JLoggingModule;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables; import com.google.common.collect.Iterables;
@ -67,7 +68,7 @@ public class BlobStoreFileProvider extends AbstractOriginatingFileProvider {
private final Iterable<Module> modules; private final Iterable<Module> modules;
public BlobStoreFileProvider() { public BlobStoreFileProvider() {
this(ImmutableList.<Module> of()); this(ImmutableList.<Module> of(new Log4JLoggingModule()));
} }
public BlobStoreFileProvider(Iterable<Module> modules) { public BlobStoreFileProvider(Iterable<Module> modules) {

View File

@ -58,7 +58,7 @@ public class BlobStoreProviderTestCase extends AbstractProviderTestConfig {
*/ */
public void prepare(final DefaultFileSystemManager manager) throws Exception { public void prepare(final DefaultFileSystemManager manager) throws Exception {
manager.addProvider("blobstore", new BlobStoreFileProvider(ImmutableList manager.addProvider("blobstore", new BlobStoreFileProvider(ImmutableList
.<Module>of(new Log4JLoggingModule()))); .<Module> of(new Log4JLoggingModule())));
} }
/** /**