Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BE7918AFF for ; Sat, 2 Jan 2016 15:24:40 +0000 (UTC) Received: (qmail 59060 invoked by uid 500); 2 Jan 2016 15:24:40 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 58954 invoked by uid 500); 2 Jan 2016 15:24:40 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 58934 invoked by uid 99); 2 Jan 2016 15:24:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2016 15:24:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CFC672C14F6 for ; Sat, 2 Jan 2016 15:24:39 +0000 (UTC) Date: Sat, 2 Jan 2016 15:24:39 +0000 (UTC) From: "Fabian Lange (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (WAGON-448) Use Java String replace to avoid commons-lang dependency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Fabian Lange created WAGON-448: ---------------------------------- Summary: Use Java String replace to avoid commons-lang dependency Key: WAGON-448 URL: https://issues.apache.org/jira/browse/WAGON-448 Project: Maven Wagon Issue Type: Bug Components: wagon-file Reporter: Fabian Lange I am trying to reduce the amount of dependencies of the Apache Karaf project. One of the subcomponents uses wagon-http and wagon-file. By doing so, it receives a dependency to commons-lang. The reason is that wagon-file has a single use of StringUtils.replaceAll(). https://github.com/apache/maven-wagon/blob/master/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java#L206 This dependency can be easily avoided using the JDK util destinationPath.replace('\\', '/'); while this is also a bit faster, the main benefit is that we now can completely remove the lang dependency. Thank you! -- This message was sent by Atlassian JIRA (v6.3.4#6332)