Skip to content

Commit

Permalink
Use stdout in Deployments.main()
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed May 17, 2018
1 parent de239b8 commit 5387bb4
Showing 1 changed file with 4 additions and 8 deletions.
Expand Up @@ -39,8 +39,6 @@
import org.jboss.shrinkwrap.resolver.api.maven.strategy.CombinedStrategy;
import org.jboss.shrinkwrap.resolver.api.maven.strategy.RejectDependenciesStrategy;
import org.jboss.shrinkwrap.resolver.api.maven.strategy.TransitiveStrategy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.jboss.shrinkwrap.resolver.api.maven.ScopeType.COMPILE;
import static org.jboss.shrinkwrap.resolver.api.maven.ScopeType.RUNTIME;
Expand All @@ -54,9 +52,7 @@
* href="mailto:camunoz@redhat.com">camunoz@redhat.com</a>
*/
public class Deployments {
private static final Logger log =
LoggerFactory.getLogger(Deployments.class);
public static final String DEPLOYMENT_NAME = "zanata-tests";
private static final String DEPLOYMENT_NAME = "zanata-tests";

static {
// Tell DeltaSpike to give more warning messages
Expand All @@ -70,7 +66,7 @@ public static void main(String[] args) throws Exception {

// Uncomment this if you want to export a .war (to actually see
// what is being deployed):
// archive.as(ZipExporter.class).exportTo(
// archive.as(org.jboss.shrinkwrap.api.exporter.ZipExporter.class).exportTo(
// new File("/tmp/zanata-arquillian.war"), true);

// OR uncomment this if you want an exploded war directory:
Expand All @@ -86,8 +82,8 @@ private static void printArchiveContents(Archive<?> archive) {
ArrayList<ArchivePath> paths =
new ArrayList<>(archive.getContent().keySet());
Collections.sort(paths);
log.info("Deployment contents:");
paths.forEach(it -> log.info(" " + it.get()));
System.out.println("Deployment contents:");
paths.forEach(it -> System.out.println(" " + it.get()));
}

static File[] runtimeAndTestDependenciesFromPom() {
Expand Down

0 comments on commit 5387bb4

Please sign in to comment.