Skip to content
Permalink
Browse files

Updating to Java EE 7.0, simplifying logging messages

  • Loading branch information...
escowles committed Aug 6, 2014
1 parent d9d3783 commit aae6219e2d29094312885e59370c3d954c186012
@@ -30,7 +30,6 @@
import org.modeshape.jcr.api.Repository;
import org.slf4j.Logger;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

/**
@@ -63,10 +62,7 @@
*/
@PostConstruct
public void buildRepository() throws RepositoryException, IOException {
if (repositoryConfiguration instanceof ClassPathResource) {
LOGGER.info("Using repo config: {}",
((ClassPathResource) repositoryConfiguration).getPath());
}
LOGGER.info("Using repo config (classpath): {}", repositoryConfiguration.getURL());

getPropertiesLoader().loadSystemProperties();

@@ -75,7 +71,7 @@ public void buildRepository() throws RepositoryException, IOException {
singletonMap(URL, repositoryConfiguration.getURL()));
} catch ( RepositoryException ex ) {
LOGGER.error("Error loading repository with configuration: {}",
((ClassPathResource) repositoryConfiguration).getPath());
repositoryConfiguration.getURL());
throw ex;
}
}
@@ -99,7 +99,7 @@
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>

0 comments on commit aae6219

Please sign in to comment.
You can’t perform that action at this time.