Skip to content

Commit a470d79

Browse files
committed
RewriteTest now always adds beans.xml (like it did before)
1 parent 07419e1 commit a470d79

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎test-harness/src/main/java/org/ocpsoft/rewrite/test/RewriteTest.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public static WebArchive getDeploymentNoWebXml(String name)
6363
.addAsLibraries(getRewriteAnnotationsArchive())
6464
.addAsLibraries(getContainerArchive())
6565
.addAsLibraries(getCurrentArchive());
66+
67+
// make it a CDI archive
68+
archive.addAsWebInfResource(new StringAsset("<beans/>"), "beans.xml");
6669

6770
// Jetty specific stuff
6871
if (isJetty()) {
@@ -76,7 +79,6 @@ public static WebArchive getDeploymentNoWebXml(String name)
7679
/*
7780
* Set up container configuration
7881
*/
79-
archive.addAsWebInfResource(new StringAsset("<beans/>"), "beans.xml");
8082
archive.addAsWebInfResource("jetty-env.xml", "jetty-env.xml");
8183
archive.addAsWebInfResource("jetty-log4j.xml", "log4j.xml");
8284

@@ -105,9 +107,6 @@ public static WebArchive getDeploymentNoWebXml(String name)
105107
// setup Mojarra
106108
archive.addAsLibraries(resolveDependencies("org.glassfish:javax.faces"));
107109

108-
// make it a CDI archive
109-
archive.addAsWebInfResource(new StringAsset("<beans/>"), "beans.xml");
110-
111110
}
112111

113112
return archive;

0 commit comments

Comments
 (0)