congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebArchive.addAsManifestResource
Code IndexAdd Tabnine to your IDE (free)

How to use
addAsManifestResource
method
in
org.jboss.shrinkwrap.api.spec.WebArchive

Best Java code snippets using org.jboss.shrinkwrap.api.spec.WebArchive.addAsManifestResource (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {    
 return ShrinkWrap.create(WebArchive.class, "test.war")
  .addClass(AbstractFoxPlatformIntegrationTest.class)
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringLookupManagedProcessEngineTest-context.xml", "applicationContext.xml")
  .addAsLibraries(DeploymentHelper.getEngineSpring())
  .addAsManifestResource("org/camunda/bpm/integrationtest/deployment/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml")
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml");
}

origin: camunda/camunda-bpm-platform

@Deployment(order=1)
public static WebArchive delegateDeployment() {
 WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "service.war")
  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  .addClass(AbstractFoxPlatformIntegrationTest.class)
  .addClass(StartProcessSLSB.class)
  .addClass(StartProcessInterface.class)
  .addAsManifestResource(new StringAsset("Dependencies: org.camunda.bpm.camunda-engine"), "MANIFEST.MF"); // get access to engine classes
 TestContainer.addContainerSpecificResourcesForNonPa(webArchive);
 return webArchive;
}
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {
 // deploy spring Process Application (does not include ejb-client nor cdi modules)
 return ShrinkWrap.create(WebArchive.class, "test.war")
  // add example bean to serve as JavaDelegate
  .addClass(ExampleBean.class)
  // add process definitions
  .addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBean.bpmn20.xml")
  .addAsResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest.testResolveBeanFromJobExecutor.bpmn20.xml")
  // add custom servlet process application
  .addClass(CustomServletProcessApplication.class)
  // regular deployment descriptor
  .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
  // web xml that bootstrapps spring
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/web.xml", "web.xml")
  // spring application context & libs
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/SpringExpressionResolvingTest-context.xml", "applicationContext.xml")
  .addAsLibraries(DeploymentHelper.getEngineSpring())
  // adding module dependency on process engine module (jboss only)
  .addAsManifestResource("org/camunda/bpm/integrationtest/functional/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {
 // deploy spring Process Application (does not include ejb-client nor cdi modules)
 return ShrinkWrap.create(WebArchive.class, "test.war")
  // add example bean to serve as JavaDelegate
  .addClass(ErrorDelegate.class)
  .addClass(RetryConfig.class)
  // add process definitions
  .addAsResource("org/camunda/bpm/integrationtest/functional/RetryConfigurationTest.testResolveRetryConfigBean.bpmn20.xml")
  // add custom servlet process application
  .addClass(CustomServletProcessApplication.class)
  // regular deployment descriptor
  .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
  // web xml that bootstrapps spring
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/web.xml", "web.xml")
  // spring application context & libs
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/spring/SpringRetryConfigurationTest-context.xml", "applicationContext.xml")
  .addAsLibraries(DeploymentHelper.getEngineSpring())
  // adding module dependency on process engine module (jboss only)
  .addAsManifestResource("org/camunda/bpm/integrationtest/functional/spring/jboss-deployment-structure.xml", "jboss-deployment-structure.xml");
}
origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "static")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "static.war")
      .addAsManifestResource("simpleapi.yaml", "openapi.yaml");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlinesFiltered")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlinesFiltered.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addPackages(true, "org.eclipse.microprofile.openapi.filter")
      .addAsManifestResource("openapi.yaml", "openapi.yaml")
      .addAsManifestResource("microprofile-config-filter.properties", "microprofile-config.properties");
}
origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("exclude-class-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("package-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("server-microprofile-config.properties", "microprofile-config.properties");
}
origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("exclude-classes-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("classes-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("class-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("scan-disable-microprofile-config.properties", "microprofile-config.properties");
}
origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("exclude-package-microprofile-config.properties", "microprofile-config.properties");
}

origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlines")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlines.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addAsManifestResource("openapi.yaml", "openapi.yaml");
}
origin: org.eclipse.microprofile.openapi/microprofile-openapi-tck

@Deployment(name = "airlinesModelReader")
public static WebArchive createDeployment() {
  return ShrinkWrap.create(WebArchive.class, "airlinesReader.war")
      .addPackages(true, "org.eclipse.microprofile.openapi.apps.airlines")
      .addPackages(true, "org.eclipse.microprofile.openapi.reader")
      .addAsManifestResource("microprofile-reader.properties", "microprofile-config.properties");
}
origin: juzu/juzu

private static WebArchive createBaseDeployment(WebArchive war, String prefix, String injectorProvider) {
 String webXMLPath = prefix + "/" + (injectorProvider.equals("cdi") ? "web-cdi" : "web") + ".xml";
 if (war == null) {
  war = ShrinkWrap.create(WebArchive.class);
 }
 String webXML = loadResource(webXMLPath);
 webXML = String.format(webXML, injectorProvider);
 war.setWebXML(new StringAsset(webXML));
 if ("cdi".equals(injectorProvider)) {
  String contextXML = loadResource("context.xml");
  war.addAsManifestResource(new StringAsset(contextXML), "context.xml");
 }
 return war;
}
origin: arquillian/arquillian-cube

@Deployment
public static WebArchive create() {
  return ShrinkWrap.create(WebArchive.class)
    .addClasses(User.class, UserRepository.class, UserRepositoryTest.class)
    .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
    .addAsResource("test-persistence.xml", "META-INF/persistence.xml")
    .addAsManifestResource(new StringAsset("Dependencies: com.h2database.h2\n"), "MANIFEST.MF");
}
origin: arquillian/arquillian-cube

@Deployment
public static WebArchive create() {
  return ShrinkWrap.create(WebArchive.class)
    .addClasses(User.class, UserRepository.class, UserRepositoryTest.class)
    .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
    .addAsResource("test-persistence.xml", "META-INF/persistence.xml")
    .addAsManifestResource(new StringAsset("Dependencies: com.h2database.h2\n"), "MANIFEST.MF");
}
origin: org.juzu/juzu-core

@Deployment(testable = false)
public static WebArchive createDeployment() {
 DescriptorBuilder config = DescriptorBuilder.DEFAULT.
   injector(InjectorProvider.CDI).
   servletApp("bridge.inject.providedcdi").
   listener("org.jboss.weld.environment.servlet.Listener").embedPortletContainer().
   resourceEnvRef("BeanManager", "javax.enterprise.inject.spi.BeanManager");
 WebArchive war = createServletDeployment(config, true);
 war.addAsManifestResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
   "<Context>\n" +
   "<Resource name=\"BeanManager\" auth=\"Container\" type=\"javax.enterprise.inject.spi.BeanManager\" factory=\"org.jboss.weld.resources.ManagerObjectFactory\"/>\n" +
   "<WatchedResource>WEB-INF/web.xml</WatchedResource>\n" +
   "<WatchedResource>META-INF/context.xml</WatchedResource>\n" +
   "</Context>"), "context.xml");
 war.addAsWebInfResource(new StringAsset("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
   "<beans xmlns=\"http://java.sun.com/xml/ns/javaee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd\">\n" +
   "</beans>"), "beans.xml");
 return war;
}
org.jboss.shrinkwrap.api.specWebArchiveaddAsManifestResource

Popular methods of WebArchive

  • addAsWebInfResource
  • addClass
  • addAsLibraries
  • addClasses
  • addAsResource
  • addPackage
  • setWebXML
  • addAsLibrary
  • addAsWebResource
  • toString
  • add
  • addPackages
  • add,
  • addPackages,
  • addAsServiceProvider,
  • get,
  • as,
  • delete,
  • merge,
  • setManifest,
  • contains

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now