Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit a27be56

Browse files
japodGerrit Code Review
authored andcommitted
Merge "Comments how to run tests or jetty with jdk logging configured."
2 parents c7e6728 + e310e4c commit a27be56

File tree

1 file changed

+7
-28
lines changed
  • tests/integration/tracing-support

1 file changed

+7
-28
lines changed

tests/integration/tracing-support/pom.xml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@
6666
<artifactId>jersey-test-framework-provider-external</artifactId>
6767
<scope>test</scope>
6868
</dependency>
69-
<!--
70-
<dependency>
71-
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
72-
<artifactId>jersey-test-framework-provider-grizzly2</artifactId>
73-
<scope>test</scope>
74-
</dependency>
75-
<dependency>
76-
<groupId>org.glassfish.jersey.connectors</groupId>
77-
<artifactId>jersey-grizzly-connector</artifactId>
78-
<scope>test</scope>
79-
</dependency>
80-
-->
8169
</dependencies>
8270

8371
<build>
@@ -86,44 +74,35 @@
8674
<groupId>org.apache.maven.plugins</groupId>
8775
<artifactId>maven-compiler-plugin</artifactId>
8876
</plugin>
89-
<!--
90-
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-surefire-plugin</artifactId>
93-
<configuration>
94-
<forkMode>always</forkMode>
95-
<enableAssertions>false</enableAssertions>
96-
<systemPropertyVariables>&lt;!&ndash; ??? still logging not working &ndash;&gt;
97-
<java.util.logging.config.file>${project.build.testOutputDirectory}/logging.properties</java.util.logging.config.file>
98-
</systemPropertyVariables>
99-
</configuration>
100-
</plugin>
101-
-->
10277
<plugin>
10378
<groupId>org.apache.maven.plugins</groupId>
10479
<artifactId>maven-failsafe-plugin</artifactId>
10580
<configuration>
106-
<systemPropertyVariables><!-- ??? still logging not working -->
81+
<systemPropertyVariables>
82+
<!-- client side config works - failsafe plugin forks jvm -->
10783
<java.util.logging.config.file>${project.build.testOutputDirectory}/logging.properties</java.util.logging.config.file>
10884
</systemPropertyVariables>
10985
</configuration>
11086
</plugin>
11187
<plugin>
11288
<groupId>org.mortbay.jetty</groupId>
11389
<artifactId>jetty-maven-plugin</artifactId>
114-
<!--<version>8.1.12.v20130726</version>-->
11590
<configuration>
11691
<connectors>
11792
<connector>
11893
<responseHeaderSize>16192</responseHeaderSize>
11994
</connector>
12095
</connectors>
96+
<!-- server side config does not fork with jetty:run goal - it uses same jvm
97+
use maven '-D' option instead:
98+
mvn _goal_ -Djava.util.logging.config.file=target/test-classes/logging.properties
12199
<systemProperties>
122-
<systemProperty><!-- ??? still logging not working -->
100+
<systemProperty>
123101
<name>java.util.logging.config.file</name>
124102
<value>${project.build.testOutputDirectory}/logging.properties</value>
125103
</systemProperty>
126104
</systemProperties>
105+
-->
127106
</configuration>
128107
</plugin>
129108
</plugins>

0 commit comments

Comments
 (0)