Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F025181EC for ; Sun, 30 Aug 2015 19:17:27 +0000 (UTC) Received: (qmail 14646 invoked by uid 500); 30 Aug 2015 18:50:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 14527 invoked by uid 500); 30 Aug 2015 18:50:46 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 14362 invoked by uid 99); 30 Aug 2015 18:50:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Aug 2015 18:50:46 +0000 Date: Sun, 30 Aug 2015 18:50:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@ant.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IVY-1522) Ivy 2.4.0 improperly handles modules with colon (:) in version 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/IVY-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721668#comment-14721668 ] ASF GitHub Bot commented on IVY-1522: ------------------------------------- Github user jaikiran closed the pull request at: https://github.com/apache/ant-ivy/pull/8 > Ivy 2.4.0 improperly handles modules with colon (:) in version > -------------------------------------------------------------- > > Key: IVY-1522 > URL: https://issues.apache.org/jira/browse/IVY-1522 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.4.0 > Reporter: Daniel Holmes > Priority: Critical > > This was not an issue in 2.2.0. > I have some modules in my project which produce debian .deb files and those modules versions include a colon (:) in the version because the version scheme was reset, so an epoch is set. > I also for this module use the extends tag, and in processing the parent location, this code in FileUtil which is called during a FileUtil.normalize() is causing the : in the resolve parent file name to have the : replaced with a :/. > The comment on the if seems to explain that it is trying to handle a Windows/NetWare case, but the assumption to process any colon in the path is too broad. > private static String[] dissect(String path) { > char sep = File.separatorChar; > path = path.replace('/', sep).replace('\\', sep); > // // make sure we are dealing with an absolute path > // if (!isAbsolutePath(path)) { > // throw new BuildException(path + " is not an absolute path"); > // } > String root = null; > int colon = path.indexOf(':'); > if (colon > 0) { // && (ON_DOS || ON_NETWARE)) { > int next = colon + 1; > root = path.substring(0, next); > char[] ca = path.toCharArray(); > root += sep; > // remove the initial separator; the root has it. > next = (ca[next] == sep) ? next + 1 : next; > StringBuffer sbPath = new StringBuffer(); > // Eliminate consecutive slashes after the drive spec: > for (int i = next; i < ca.length; i++) { > if (ca[i] != sep || ca[i - 1] != sep) { > sbPath.append(ca[i]); > } > } > path = sbPath.toString(); -- This message was sent by Atlassian JIRA (v6.3.4#6332)