aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/test/fake-app
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-01 16:51:37 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-01 16:51:57 +0200
commitaf19a257160eae52f2f5a08cfb979625a9cf5cff (patch)
tree3aa8ecd06fd0f57619c98b4bbc133dab8b96aeef /sonar-application/src/test/fake-app
parent3a9dfb1fd7e4c854da5eab3d041e70b27e9c709c (diff)
downloadsonarqube-af19a257160eae52f2f5a08cfb979625a9cf5cff.tar.gz
sonarqube-af19a257160eae52f2f5a08cfb979625a9cf5cff.zip
SONAR-4675 Replace Jetty web server by Tomcat 7
Diffstat (limited to 'sonar-application/src/test/fake-app')
-rw-r--r--sonar-application/src/test/fake-app/conf/logback-access.xml17
-rw-r--r--sonar-application/src/test/fake-app/conf/sonar.properties2
-rw-r--r--sonar-application/src/test/fake-app/web/META-INF/context.xml2
-rw-r--r--sonar-application/src/test/fake-app/web/WEB-INF/web.xml11
-rw-r--r--sonar-application/src/test/fake-app/web/index.html1
5 files changed, 33 insertions, 0 deletions
diff --git a/sonar-application/src/test/fake-app/conf/logback-access.xml b/sonar-application/src/test/fake-app/conf/logback-access.xml
new file mode 100644
index 00000000000..77cfc885d09
--- /dev/null
+++ b/sonar-application/src/test/fake-app/conf/logback-access.xml
@@ -0,0 +1,17 @@
+<!--
+
+ See http://logback.qos.ch/access.html#configuration
+
+-->
+<configuration debug="false">
+ <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <file>${SONAR_HOME}/logs/access.log</file>
+ <encoder>
+ <pattern>combined</pattern>
+ </encoder>
+ </appender>
+
+ <appender-ref ref="FILE" />
+</configuration>
diff --git a/sonar-application/src/test/fake-app/conf/sonar.properties b/sonar-application/src/test/fake-app/conf/sonar.properties
new file mode 100644
index 00000000000..e8e111dcab8
--- /dev/null
+++ b/sonar-application/src/test/fake-app/conf/sonar.properties
@@ -0,0 +1,2 @@
+# random open port
+sonar.web.port=0 \ No newline at end of file
diff --git a/sonar-application/src/test/fake-app/web/META-INF/context.xml b/sonar-application/src/test/fake-app/web/META-INF/context.xml
new file mode 100644
index 00000000000..5e31888a15e
--- /dev/null
+++ b/sonar-application/src/test/fake-app/web/META-INF/context.xml
@@ -0,0 +1,2 @@
+<Context antiJARLocking="true" antiResourceLocking="true">
+</Context>
diff --git a/sonar-application/src/test/fake-app/web/WEB-INF/web.xml b/sonar-application/src/test/fake-app/web/WEB-INF/web.xml
new file mode 100644
index 00000000000..9f13dabf72f
--- /dev/null
+++ b/sonar-application/src/test/fake-app/web/WEB-INF/web.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ id="Fake"
+ version="3.0"
+ metadata-complete="true">
+
+ <display-name>Fake</display-name>
+
+</web-app>
diff --git a/sonar-application/src/test/fake-app/web/index.html b/sonar-application/src/test/fake-app/web/index.html
new file mode 100644
index 00000000000..5e1c309dae7
--- /dev/null
+++ b/sonar-application/src/test/fake-app/web/index.html
@@ -0,0 +1 @@
+Hello World \ No newline at end of file