From: markt Date: Sat, 11 Dec 2010 22:21:02 +0000 (+0000) Subject: TRy and sync up the deps in the POMs with what Checkstyle validates X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5db13d23d6c06ae8a92d5083f0d92f9b96fdc319;p=tomcat7.0 TRy and sync up the deps in the POMs with what Checkstyle validates git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1044731 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/res/checkstyle/org-import-control.xml b/res/checkstyle/org-import-control.xml index 1cbd9c309..f36a287a1 100644 --- a/res/checkstyle/org-import-control.xml +++ b/res/checkstyle/org-import-control.xml @@ -43,7 +43,36 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -74,6 +103,8 @@ + + diff --git a/res/maven/tomcat-api.pom b/res/maven/tomcat-api.pom index a82abec7d..21ed16f32 100644 --- a/res/maven/tomcat-api.pom +++ b/res/maven/tomcat-api.pom @@ -21,4 +21,12 @@ tomcat-api @MAVEN.DEPLOY.VERSION@ Definition of interfaces shared by Catalina and Jasper + + + org.apache.tomcat + tomcat-servlet-api + @MAVEN.DEPLOY.VERSION@ + compile + + diff --git a/res/maven/tomcat-catalina-ant.pom b/res/maven/tomcat-catalina-ant.pom index 5b7ff7c51..12f7153db 100644 --- a/res/maven/tomcat-catalina-ant.pom +++ b/res/maven/tomcat-catalina-ant.pom @@ -30,18 +30,6 @@ org.apache.tomcat - tomcat-servlet-api - @MAVEN.DEPLOY.VERSION@ - compile - - - org.apache.tomcat - tomcat-juli - @MAVEN.DEPLOY.VERSION@ - compile - - - org.apache.tomcat tomcat-catalina @MAVEN.DEPLOY.VERSION@ compile diff --git a/res/maven/tomcat-catalina-jmx-remote.pom b/res/maven/tomcat-catalina-jmx-remote.pom index 3d8570405..6bc448dca 100644 --- a/res/maven/tomcat-catalina-jmx-remote.pom +++ b/res/maven/tomcat-catalina-jmx-remote.pom @@ -24,9 +24,21 @@ org.apache.tomcat + tomcat-coyote + @MAVEN.DEPLOY.VERSION@ + compile + + + org.apache.tomcat tomcat-catalina @MAVEN.DEPLOY.VERSION@ compile + + org.apache.tomcat + tomcat-juli + @MAVEN.DEPLOY.VERSION@ + compile + diff --git a/res/maven/tomcat-catalina-ws.pom b/res/maven/tomcat-catalina-ws.pom index 0a5f458e4..475b72b0e 100644 --- a/res/maven/tomcat-catalina-ws.pom +++ b/res/maven/tomcat-catalina-ws.pom @@ -20,7 +20,7 @@ org.apache.tomcat tomcat-catalina-ws @MAVEN.DEPLOY.VERSION@ - Tomcat Remote JMX listener + Tomcat JNDI Factory for Web Services org.apache.tomcat diff --git a/res/maven/tomcat-coyote.pom b/res/maven/tomcat-coyote.pom index 479b2fd56..0121b8f5b 100644 --- a/res/maven/tomcat-coyote.pom +++ b/res/maven/tomcat-coyote.pom @@ -24,18 +24,6 @@ org.apache.tomcat - tomcat-catalina - @MAVEN.DEPLOY.VERSION@ - compile - - - org.apache.tomcat - tomcat-servlet-api - @MAVEN.DEPLOY.VERSION@ - compile - - - org.apache.tomcat tomcat-juli @MAVEN.DEPLOY.VERSION@ compile diff --git a/res/maven/tomcat-jasper.pom b/res/maven/tomcat-jasper.pom index 73a578231..9cd6c72e3 100644 --- a/res/maven/tomcat-jasper.pom +++ b/res/maven/tomcat-jasper.pom @@ -42,12 +42,6 @@ org.apache.tomcat - tomcat-catalina - @MAVEN.DEPLOY.VERSION@ - compile - - - org.apache.tomcat tomcat-el-api @MAVEN.DEPLOY.VERSION@ compile diff --git a/test/org/apache/tomcat/util/threads/DedicatedThreadExecutorTest.java b/test/org/apache/tomcat/util/threads/DedicatedThreadExecutorTest.java deleted file mode 100644 index 22f84311c..000000000 --- a/test/org/apache/tomcat/util/threads/DedicatedThreadExecutorTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.tomcat.util.threads; - -import java.util.concurrent.Callable; - -import junit.framework.TestCase; - -public class DedicatedThreadExecutorTest extends TestCase { - private Thread dedicatedThread; - - public void testExecute() { - final Thread testingThread = Thread.currentThread(); - DedicatedThreadExecutor executor = new DedicatedThreadExecutor(); - Long result = executor.execute(new Callable() { - @Override - public Long call() throws Exception { - dedicatedThread = Thread.currentThread(); - DedicatedThreadExecutorTest.assertNotSame(testingThread, - dedicatedThread); - return 123L; - } - }); - assertEquals(123, result.longValue()); - - //check that the same thread is reused - executor.execute(new Callable() { - @Override - public Void call() throws Exception { - DedicatedThreadExecutorTest.assertSame(dedicatedThread, - Thread.currentThread()); - return null; - } - }); - - executor.shutdown(); - assertFalse(dedicatedThread.isAlive()); - } - - public void testExecuteInOwnThread() { - final Thread testingThread = Thread.currentThread(); - Long result = - DedicatedThreadExecutor.executeInOwnThread(new Callable() { - @Override - public Long call() throws Exception { - dedicatedThread = Thread.currentThread(); - DedicatedThreadExecutorTest.assertNotSame(testingThread, - dedicatedThread); - return 456L; - } - }); - assertEquals(456, result.longValue()); - assertFalse(dedicatedThread.isAlive()); - } - -}