Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 83219 invoked from network); 30 Mar 2008 21:40:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Mar 2008 21:40:47 -0000 Received: (qmail 45959 invoked by uid 500); 30 Mar 2008 21:40:46 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 45939 invoked by uid 500); 30 Mar 2008 21:40: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 45930 invoked by uid 99); 30 Mar 2008 21:40:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Mar 2008 14:40:46 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Mar 2008 21:40:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3A000234C0A8 for ; Sun, 30 Mar 2008 14:38:24 -0700 (PDT) Message-ID: <877396143.1206913104235.JavaMail.jira@brutus> Date: Sun, 30 Mar 2008 14:38:24 -0700 (PDT) From: "Shawn Castrianni (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-787) ivy.original.xml file using artifact pattern in cache and causing problems MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ivy.original.xml file using artifact pattern in cache and causing problems -------------------------------------------------------------------------- Key: IVY-787 URL: https://issues.apache.org/jira/browse/IVY-787 Project: Ivy Issue Type: Bug Reporter: Shawn Castrianni > I have a caches tag like this: > > artifactPattern="${lgcbuild.releaseName > }/[module]/[branch]/[revision]/[type]/[home]/[homeType]/[path]/[artifa > ct].[ext]"/> > > which includes my custom attributes of [home], [homeType], and [path]. > In my ivy.xml files, some of these custom attributes are filled out > and some are left as empty strings. The empty strings allow them to > be ignored when used as directories. Everything seems to work fine > for the publish, resolve, and retrieve. However, my cache is not > quite right. The ivy.xmlis properly using the ivyPattern above in my > caches tag, however, there is some other ivy.original.xml file that > seems to be using the artifactPattern. Because it is using the > artifactPattern AND there is no value at all for my custom attributes > (not even an empty string), the cache is placing the ivy.original.xml > file into subdirectories with "[home]", "[homeType]", and "[path]" as > names. This ivy.original.xml file is probably a new file as a result of an enhancement recently implemented in IVY 2 to retain original dependency information. Let's say it's part of the change in cache management, now we cache the module descriptor exactly as downloaded, before storing it in ivy format (when you use a pom the difference is more obvious). > > Regardless, I would think the ivy.original.xml file should probably > also use the ivyPattern in the cache and not the artifactPattern?? The problem is that people may not use the [artifact] token in ivy cache pattern, and since we use this token to make the difference between the original file and the converted one, we could run into name collisions in this case. But maybe using the artifact token is not a good idea, maybe we should try to append a suffix to the ivy file path instead (like .original). Please open an issue about this problem, and we'll see what's the best option to solve the problem considering what I just said. Xavier -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.