/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other
* contributors as indicated by the @author tags. All rights reserved.
* See the copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.infinispan.quickstart.cdi.test.util;
import org.infinispan.quickstart.cdi.GreetingService;
import org.infinispan.quickstart.cdi.config.Config;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import org.jboss.shrinkwrap.resolver.api.maven.PomEquippedResolveStage;
import java.io.File;
/**
* @author Kevin Pollet <pollet.kevin@gmail.com> (C) 2011
*/
public final class Deployments {
// Disable instantiation
private Deployments() {
}
public static WebArchive baseDeployment() {
return ShrinkWrap.create(WebArchive.class)
.addPackage(Config.class.getPackage())
.addPackage(GreetingService.class.getPackage())
.addAsWebInfResource(new File("src/main/webapp/WEB-INF/beans.xml"), "beans.xml")
.addAsLibraries(new File("target/test-libs/infinispan-embedded.jar"),
new File("target/test-libs/cache-api.jar"),
new File("target/test-libs/jboss-marshalling.jar"),
new File("target/test-libs/jboss-marshalling-river.jar"),
new File("target/test-libs/cdi-api.jar")
);
}
}