Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2013-08-29 18:48:56 +0000
committerJoakim Erdfelt2013-08-29 18:49:33 +0000
commit8a1f12ae81bc1b6e6d6f4e1c0e3298b33beca015 (patch)
tree1bed918ff75d27009ddd0a18ad7ff9a3b4d06d88 /tests/test-webapps
parentddca8bc3271917b0c62f5e9982715e1a6b7546ce (diff)
downloadorg.eclipse.jetty.project-8a1f12ae81bc1b6e6d6f4e1c0e3298b33beca015.tar.gz
org.eclipse.jetty.project-8a1f12ae81bc1b6e6d6f4e1c0e3298b33beca015.tar.xz
org.eclipse.jetty.project-8a1f12ae81bc1b6e6d6f4e1c0e3298b33beca015.zip
jetty-start / fixing build + work towards demo-base
Diffstat (limited to 'tests/test-webapps')
-rw-r--r--tests/test-webapps/test-jaas-webapp/pom.xml2
-rw-r--r--tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.conf (renamed from tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.conf)2
-rw-r--r--tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.properties (renamed from tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.properties)0
-rw-r--r--tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml (renamed from tests/test-webapps/test-jaas-webapp/src/main/config/demo/webapps/test-jaas.xml)0
-rw-r--r--tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html2
-rw-r--r--tests/test-webapps/test-jetty-webapp/pom.xml2
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/assembly/embedded-jetty-web-for-webbundle.xml2
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/assembly/web-bundle.xml2
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml (renamed from tests/test-webapps/test-jetty-webapp/src/main/config/demo/jetty-demo.xml)20
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/override-web.xml (renamed from tests/test-webapps/test-jetty-webapp/src/main/config/demo/override-web.xml)0
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/realm.properties (renamed from tests/test-webapps/test-jetty-webapp/src/main/config/demo/realm.properties)0
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml (renamed from tests/test-webapps/test-jetty-webapp/src/main/config/demo/test-realm.xml)2
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/start.ini33
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml (renamed from tests/test-webapps/test-jetty-webapp/src/main/config/demo/webapps/test.xml)4
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/main/config/modules/demo.mod20
-rw-r--r--tests/test-webapps/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java2
-rw-r--r--tests/test-webapps/test-jndi-webapp/src/main/assembly/config.xml4
-rw-r--r--tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/assembly/config.xml4
18 files changed, 47 insertions, 54 deletions
diff --git a/tests/test-webapps/test-jaas-webapp/pom.xml b/tests/test-webapps/test-jaas-webapp/pom.xml
index ba827d2d4b..9e58548f56 100644
--- a/tests/test-webapps/test-jaas-webapp/pom.xml
+++ b/tests/test-webapps/test-jaas-webapp/pom.xml
@@ -34,7 +34,7 @@
<!-- Mandatory. This system property tells JAAS where to find the login module configuration file -->
<systemProperty>
<name>java.security.auth.login.config</name>
- <value>${basedir}/src/main/config/demo/login.conf</value>
+ <value>${basedir}/src/main/config/demo-base/etc/login.conf</value>
</systemProperty>
</systemProperties>
<webAppConfig>
diff --git a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.conf b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.conf
index aa0736f41a..a97b0eddee 100644
--- a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.conf
+++ b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.conf
@@ -1,5 +1,5 @@
xyz {
org.eclipse.jetty.jaas.spi.PropertyFileLoginModule required
debug="true"
-file="${jetty.home}/demo/login.properties";
+file="${jetty.base}/etc/login.properties";
};
diff --git a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.properties b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.properties
index 61e3203731..61e3203731 100644
--- a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/login.properties
+++ b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/etc/login.properties
diff --git a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/webapps/test-jaas.xml b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml
index f3b0a18b1a..f3b0a18b1a 100644
--- a/tests/test-webapps/test-jaas-webapp/src/main/config/demo/webapps/test-jaas.xml
+++ b/tests/test-webapps/test-jaas-webapp/src/main/config/demo-base/webapps/test-jaas.xml
diff --git a/tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html b/tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html
index 5b4f50da8c..521db42423 100644
--- a/tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html
+++ b/tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html
@@ -24,7 +24,7 @@
etc/jetty-jaas.xml
</pre>
</p>
- <p>For the jetty distribution demos, jaas is already enabled in the start.d/900-demo.ini file and sets the jaas.login.conf property to demo/login.conf for use with the demo/webapps/test-jaas.war web application. </p>
+ <p>For the jetty distribution demos, jaas is already enabled in the demo-base/start.ini file and sets the jaas.login.conf property to ${jetty.base}/etc/login.conf for use with the demo-base/webapps/test-jaas.war web application. </p>
<p>The full source of this demonstration is available <a
href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/tests/test-webapps/test-jaas-webapp">here</a>.</p>
diff --git a/tests/test-webapps/test-jetty-webapp/pom.xml b/tests/test-webapps/test-jetty-webapp/pom.xml
index 231bde47b1..9b6377b434 100644
--- a/tests/test-webapps/test-jetty-webapp/pom.xml
+++ b/tests/test-webapps/test-jetty-webapp/pom.xml
@@ -147,7 +147,7 @@
<loginServices>
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
<name>Test Realm</name>
- <config>src/main/config/demo/realm.properties</config>
+ <config>src/main/config/demo-base/etc/realm.properties</config>
</loginService>
</loginServices>
</configuration>
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/assembly/embedded-jetty-web-for-webbundle.xml b/tests/test-webapps/test-jetty-webapp/src/main/assembly/embedded-jetty-web-for-webbundle.xml
index 8c10dad34b..911b9479ff 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/assembly/embedded-jetty-web-for-webbundle.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/assembly/embedded-jetty-web-for-webbundle.xml
@@ -28,7 +28,7 @@ detected.
<Set name="extractWAR">true</Set>
<Set name="copyWebDir">false</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
- <Set name="overrideDescriptor"><SystemProperty name="jetty.base" default="."/>/demo/override-web.xml</Set>
+ <Set name="overrideDescriptor"><SystemProperty name="jetty.base" default="."/>/etc/override-web.xml</Set>
<!-- virtual hosts
<Set name="virtualHosts">
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/assembly/web-bundle.xml b/tests/test-webapps/test-jetty-webapp/src/main/assembly/web-bundle.xml
index 95eb503ac9..c220f51b18 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/assembly/web-bundle.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/assembly/web-bundle.xml
@@ -27,7 +27,7 @@
<destName>jetty-web.xml</destName>
</file>
<file>
- <source>src/main/config/demo/realm.properties</source>
+ <source>src/main/config/demo-base/etc/realm.properties</source>
<outputDirectory>WEB-INF</outputDirectory>
<destName>realm.properties</destName>
</file>
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/jetty-demo.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml
index 36fefd16b2..35a8f87582 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/jetty-demo.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/demo-rewrite-rules.xml
@@ -7,26 +7,6 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- ============================================================= -->
- <!-- Add demo/webapps to deployment manager scans -->
- <!-- ============================================================= -->
- <Ref refid="DeploymentManager">
- <Call id="webappprovider" name="addAppProvider">
- <Arg>
- <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
- <Set name="monitoredDirName"><Property name="jetty.base" default="." />/demo/webapps</Set>
- <Set name="defaultsDescriptor"><Property name="jetty.home" default="." />/etc/webdefault.xml</Set>
- <Set name="scanInterval">1</Set>
- <Set name="extractWars">true</Set>
- <Set name="configurationManager">
- <New class="org.eclipse.jetty.deploy.PropertiesConfigurationManager"/>
- </Set>
- </New>
- </Arg>
- </Call>
- </Ref>
-
-
- <!-- ============================================================= -->
<!-- Add rewrite rules -->
<!-- ============================================================= -->
<Ref refid="Rewrite">
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/override-web.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/override-web.xml
index 08327c5dcb..08327c5dcb 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/override-web.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/override-web.xml
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/realm.properties b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/realm.properties
index 9d88b852b7..9d88b852b7 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/realm.properties
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/realm.properties
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/test-realm.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml
index 97fccac33d..d5c776ba08 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/test-realm.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/test-realm.xml
@@ -12,7 +12,7 @@
<Arg>
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">Test Realm</Set>
- <Set name="config"><Property name="demo.realm" default="demo/realm.properties"/></Set>
+ <Set name="config"><Property name="demo.realm" default="etc/realm.properties"/></Set>
<Set name="refreshInterval">0</Set>
</New>
</Arg>
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/start.ini b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/start.ini
new file mode 100644
index 0000000000..66007703e2
--- /dev/null
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/start.ini
@@ -0,0 +1,33 @@
+#
+# Example of providing a demo configuration, using a ${jetty.base}
+#
+
+# We want to serve content over http
+--module=http
+
+# Have webapps be deployed normally from webapps directory
+--module=deploy
+
+# We are using annotations + jndi
+--module=annotations
+--module=jndi
+
+# Enable security via jaas, and configure it
+--module=jaas
+jaas.login.conf=demo/login.conf
+
+# Enable rewrite examples
+--module=rewrite
+etc/demo-rewrite-rules.xml
+
+# The async behavior examples use http client to access remote systems
+--module=client
+
+# Websocket chat examples needs websocket enabled
+--module=websocket
+
+# Create and configure the test realm
+etc/test-realm.xml
+demo.realm=demo/realm.properties
+
+
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/webapps/test.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml
index b26d9fc178..09f59b7ce9 100644
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/demo/webapps/test.xml
+++ b/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/webapps/test.xml
@@ -27,7 +27,7 @@ detected.
<Set name="extractWAR">true</Set>
<Set name="copyWebDir">false</Set>
<Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
- <Set name="overrideDescriptor"><Property name="jetty.base" default="."/>/demo/override-web.xml</Set>
+ <Set name="overrideDescriptor"><Property name="jetty.base" default="."/>/etc/override-web.xml</Set>
<!-- virtual hosts
@@ -55,7 +55,7 @@ detected.
<Set name="loginService">
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">Test Realm</Set>
- <Set name="config"><SystemProperty name="jetty.base" default="."/>/demo/realm.properties</Set>
+ <Set name="config"><SystemProperty name="jetty.base" default="."/>/etc/realm.properties</Set>
<!-- To enable reload of realm when properties change, uncomment the following lines -->
<!-- changing refreshInterval (in seconds) as desired -->
<!--
diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/modules/demo.mod b/tests/test-webapps/test-jetty-webapp/src/main/config/modules/demo.mod
deleted file mode 100644
index 64048565b0..0000000000
--- a/tests/test-webapps/test-jetty-webapp/src/main/config/modules/demo.mod
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Jetty Demo Module
-#
-
-DEPEND=jaas
-DEPEND=jndi
-DEPEND=rewrite
-DEPEND=client
-DEPEND=annotations
-DEPEND=websocket
-DEPEND=deploy
-
-LIB=demo/lib/*.jar
-
-demo/test-realm.xml
-demo/jetty-demo.xml
-
-INI=--module=jaas
-INI=demo.realm=demo/realm.properties
-INI=jaas.login.conf=demo/login.conf
diff --git a/tests/test-webapps/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java b/tests/test-webapps/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java
index 9080216c27..fde8fabe86 100644
--- a/tests/test-webapps/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java
+++ b/tests/test-webapps/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java
@@ -154,7 +154,7 @@ public class TestServer
// Setup context
HashLoginService login = new HashLoginService();
login.setName("Test Realm");
- login.setConfig(jetty_root + "/tests/test-webapps/test-jetty-webapp/src/main/config/demo/realm.properties");
+ login.setConfig(jetty_root + "/tests/test-webapps/test-jetty-webapp/src/main/config/demo-base/etc/realm.properties");
server.addBean(login);
File log=File.createTempFile("jetty-yyyy_mm_dd", "log");
diff --git a/tests/test-webapps/test-jndi-webapp/src/main/assembly/config.xml b/tests/test-webapps/test-jndi-webapp/src/main/assembly/config.xml
index dd9e7a5808..794604398d 100644
--- a/tests/test-webapps/test-jndi-webapp/src/main/assembly/config.xml
+++ b/tests/test-webapps/test-jndi-webapp/src/main/assembly/config.xml
@@ -18,14 +18,14 @@
</fileSet>
<fileSet>
<directory>target</directory>
- <outputDirectory>demo/webapps</outputDirectory>
+ <outputDirectory>demo-base/webapps</outputDirectory>
<includes>
<include>test-jndi.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>target/lib/jndi</directory>
- <outputDirectory>demo/lib</outputDirectory>
+ <outputDirectory>demo-base/lib/ext</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
diff --git a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/assembly/config.xml b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/assembly/config.xml
index 71666db578..f16ec5fc3e 100644
--- a/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/assembly/config.xml
+++ b/tests/test-webapps/test-servlet-spec/test-spec-webapp/src/main/assembly/config.xml
@@ -18,14 +18,14 @@
</fileSet>
<fileSet>
<directory>target</directory>
- <outputDirectory>demo/webapps</outputDirectory>
+ <outputDirectory>demo-base/webapps</outputDirectory>
<includes>
<include>test-spec.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>target/lib/jndi</directory>
- <outputDirectory>demo/lib</outputDirectory>
+ <outputDirectory>demo-base/lib/ext</outputDirectory>
<includes>
<include>*.jar</include>
</includes>

Back to the top