Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8154818F2D for ; Sat, 29 Aug 2015 12:14:46 +0000 (UTC) Received: (qmail 41646 invoked by uid 500); 29 Aug 2015 12:14:46 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 41608 invoked by uid 500); 29 Aug 2015 12:14:46 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 41592 invoked by uid 99); 29 Aug 2015 12:14:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Aug 2015 12:14:46 +0000 Date: Sat, 29 Aug 2015 12:14:46 +0000 (UTC) From: "Benson Margulies (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCORE-406) Refactor some test code to be sharable with OSGi tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721098#comment-14721098 ] Benson Margulies commented on HTTPCORE-406: ------------------------------------------- Stephen Connolly from the Maven project is the expert here. [~stephenc] Maybe he can point to a repair. > Refactor some test code to be sharable with OSGi tests > ------------------------------------------------------ > > Key: HTTPCORE-406 > URL: https://issues.apache.org/jira/browse/HTTPCORE-406 > Project: HttpComponents HttpCore > Issue Type: Task > Reporter: Benson Margulies > Fix For: 4.4.2, 5.0-alpha1 > > > It would be good to use the test server when testing the OSGi bundle. However, it's in src/test/java. > There are three ways to reuse it: > * [https://maven.apache.org/plugins/maven-jar-plugin/examples/create-test-jar.html] business > * create another Maven subproject. > * [http://www.mojohaus.org/build-helper-maven-plugin/add-test-source-mojo.html] and borrow the source directory. > While I'd usually consider the third to be really ugly, it does make it easy to get the server into the 'test bundle' built by pax-exam. > I intend to try to work out how to use the first alternative. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org