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

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

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

Refine searchRefine arrow

  • ShrinkWrap.create
  • Deployment.<init>
  • WebArchive.addAsLibraries
origin: javaee-samples/javaee7-samples

public static WebArchive defaultWebArchive() {
  return 
    create(WebArchive.class, "test.war")
      .addPackages(true, "org.javaee7.jaspic")
      .deleteClass(ArquillianBase.class)
      .addAsWebInfResource(resource("web.xml"))
      .addAsWebInfResource(resource("jboss-web.xml"))
      .addAsWebInfResource(resource("glassfish-web.xml"));
}

origin: hibernate/hibernate-orm

@Deployment
public static WebArchive createDeployment() {
  return ShrinkWrap.create( WebArchive.class )
      .addClass( Kryptonite.class )
      .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" )
      .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" );
}
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(name="pa", order=2)
public static WebArchive processArchive() {
 return initWebArchiveDeployment()
  .addClass(LocalSFSBClientDelegateBean.class)
  .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSFSBInvocationTest.testInvokeBean.bpmn20.xml")
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml");
}
origin: camunda/camunda-bpm-platform

public static WebArchive initWebArchiveDeployment(String name, String processesXmlPath) {
 WebArchive archive = ShrinkWrap.create(WebArchive.class, name)
      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
      .addAsLibraries(DeploymentHelper.getEngineCdi())
      .addAsResource(processesXmlPath, "META-INF/processes.xml")
      .addClass(AbstractFoxPlatformIntegrationTest.class)
      .addClass(TestConstants.class);
 TestContainer.addContainerSpecificResources(archive);
 return archive;
}
origin: camunda/camunda-bpm-platform

@Deployment
public static WebArchive processArchive() {
 return ShrinkWrap.create(WebArchive.class, "test.war")
  .addClass(AbstractFoxPlatformIntegrationTest.class)
  .addClass(CustomSpringServletProcessApplication.class)
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/SpringServletPALifecycleTest-context.xml", "applicationContext.xml")
  .addAsLibraries(DeploymentHelper.getEngineSpring())
  .addAsWebInfResource("org/camunda/bpm/integrationtest/deployment/spring/web.xml", "web.xml");
}
origin: hibernate/hibernate-orm

@Deployment
public static WebArchive createDeployment() {
  return ShrinkWrap.create( WebArchive.class )
      .addClass( Kryptonite.class )
      .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" )
      .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" );
}
origin: camunda/camunda-bpm-platform

@Deployment(name="pa", order=2)
public static WebArchive processArchive() {
 return initWebArchiveDeployment()
  .addClass(LocalSLSBClientDelegateBean.class)
  .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSLSBInvocationTest.testInvokeBean.bpmn20.xml")
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 // the test is deployed as a seperate deployment
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: hibernate/hibernate-orm

@Deployment
public static WebArchive createDeployment() {
  return ShrinkWrap.create( WebArchive.class )
      .addClass( AuditedEntity.class )
      .addAsWebInfResource( EmptyAsset.INSTANCE, "beans.xml" )
      .addAsResource( new StringAsset( persistenceXml().exportAsString() ), "META-INF/persistence.xml" );
}
origin: camunda/camunda-bpm-platform

@Deployment(name="pa", order=2)
public static WebArchive processArchive() {
 return initWebArchiveDeployment()
  .addClass(LocalSingletonBeanClientDelegateBean.class)
  .addAsResource("org/camunda/bpm/integrationtest/functional/ejb/local/LocalSingletonBeanInvocationTest.testInvokeBean.bpmn20.xml")
  .addAsWebInfResource("org/camunda/bpm/integrationtest/functional/ejb/local/jboss-deployment-structure.xml","jboss-deployment-structure.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class);
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(name="pa1")
public static WebArchive createProcessApplication1() {
 return initWebArchiveDeployment("pa1.war")
  .addAsWebInfResource(new StringAsset(JYTHON_MODULE_DEPENDENCY),"jboss-deployment-structure.xml")
  .addAsResource(createScriptTaskProcess("python", "", "process1"), "process1.bpmn20.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment(name="clientDeployment")
public static WebArchive clientDeployment() {
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "client.war")
     .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
     .addClass(AbstractFoxPlatformIntegrationTest.class)
     .addAsLibraries(DeploymentHelper.getEngineCdi());
 TestContainer.addContainerSpecificResourcesForNonPa(deployment);
 return deployment;
}
origin: camunda/camunda-bpm-platform

@Deployment(managed=false, name=DEPLOYMENT)
public static WebArchive processArchive() {    
 
 WebArchive deployment = ShrinkWrap.create(WebArchive.class, "test.war")
  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
  .addAsResource("org/camunda/bpm/integrationtest/deployment/war/TestWarDeploymentWithBrokenBpmnXml.testXmlInvalid.bpmn20.xml");
 
 TestContainer.addContainerSpecificResources(deployment);
 
 return deployment;
}

origin: camunda/camunda-bpm-platform

@Deployment(name="pa1")
public static WebArchive createProcessApplication1() {
 return initWebArchiveDeployment("pa1.war")
  .addAsWebInfResource(new StringAsset(GROOVY_MODULE_DEPENDENCY),"jboss-deployment-structure.xml")
  .addAsResource(createScriptTaskProcess("groovy", "", "process1"), "process1.bpmn20.xml");
}
origin: camunda/camunda-bpm-platform

@Deployment(managed=false, name="deployment")
public static WebArchive processArchive() {    
 
 return  ShrinkWrap.create(WebArchive.class, "test.war")
  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  .addAsLibraries(DeploymentHelper.getEjbClient())
  .addAsResource("META-INF/processes.xml", "META-INF/processes.xml")
  .addAsResource("org/camunda/bpm/integrationtest/functional/drools/TestDeploymentWithDroolsTaskFails.testDeployDroolsFails.bpmn20.xml");           
}

origin: camunda/camunda-bpm-platform

@Deployment(order=1)
public static WebArchive delegateDeployment() {
 return ShrinkWrap.create(WebArchive.class, "service.war")
  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
  .addClass(AbstractFoxPlatformIntegrationTest.class)
  .addClass(InvocationCounter.class) // @RequestScoped CDI bean
  .addClass(InvocationCounterService.class) // interface (remote)
  .addClass(InvocationCounterServiceLocal.class) // interface (local)
  .addClass(InvocationCounterServiceBean.class); // @Stateless ejb
}
origin: camunda/camunda-bpm-platform

@Deployment(name="pa2")
public static WebArchive createProcessApplication2() {
 return initWebArchiveDeployment("pa2.war")
  .addClass(CustomClass.class)
  .addAsWebInfResource(new StringAsset(GROOVY_MODULE_DEPENDENCY),"jboss-deployment-structure.xml")
  .addAsResource(createScriptTaskProcess("groovy", SCRIPT_WITH_IMPORT, "process2"), "process2.bpmn20.xml");
}
org.jboss.shrinkwrap.api.specWebArchiveaddAsWebInfResource

Popular methods of WebArchive

  • addClass
  • addAsLibraries
  • addClasses
  • addAsResource
  • addPackage
  • setWebXML
  • addAsLibrary
  • addAsWebResource
  • toString
  • add
  • addPackages
  • addAsServiceProvider
  • addPackages,
  • addAsServiceProvider,
  • get,
  • addAsManifestResource,
  • 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)
  • Best plugins for Eclipse
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