From notificationscervantesmichelle@example.net Fri Feb 01 06:37:53 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 85597 invoked from network); 1 Feb 2008 06:37:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 06:37:53 -0000 Received: (qmail 84718 invoked by uid 500); 1 Feb 2008 06:37:44 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 84692 invoked by uid 500); 1 Feb 2008 06:37:44 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 84683 invoked by uid 99); 1 Feb 2008 06:37:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 22:37:44 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 06:37:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EA13F1A9832; Thu, 31 Jan 2008 22:37:20 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r617356 - /ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Date: Fri, 01 Feb 2008 06:37:20 -0000 To: cervantesmichelle@example.net From: cervantesmichelle@example.net X-Mailer: svnmailer-1.0.8 Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: jhm Date: Thu Jan 31 22:37:19 2008 New Revision: 617356 URL: http://svn.apache.org/viewvc?rev=617356&view=rev Log: Helper class for checking task configurations. Added: ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Added: ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java?rev=617356&view=auto ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java (added) +++ ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Thu Jan 31 22:37:19 2008 @@ -0,0 +1,113 @@ +/* + * 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.tools.ant; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +/** + * <p>Helper class for the check of the configuration of a given task. + * This class provides methods for making assumptions about the task configuration. + * After collecting all violations with <tt>assert*</tt> and <tt>fail</tt> + * methods the <tt>checkErrors</tt> will throw a BuildException with all collected + * messages or does nothing if there wasn't any error.</p> + * + * <p>Example:</p> + * + * <pre> + * public class MyTask extends Task { + * ... + * public void execute() { + * TaskConfigurationChecker checker = TaskConfigurationChecker(this); + * checker.assertConfig( + * srcdir != null, + * "Attribute 'srcdir' must be set. + * ); + * checker.assertConfig( + * srcdir.exists(), + * "Srcdir (" + srcdir + ") must exist." + * ); + * if (someComplexCondition()) { + * fail("Complex condition failed."); + * } + * checker.checkErrors(); + * } + * } + * </pre> + * + * @see <a href="http://martinfowler.com/eaaDev/Notification.html">Notification Pattern</a> + */ +public class TaskConfigurationChecker { + + /** List of all collected error messages. */ + private List/*<String>*/ errors = new ArrayList(); + + /** Task for which the configuration should be checked. */ + private Task task; + + /** + * Constructor. + * @param task which task should be checked + */ + public TaskConfigurationChecker(Task task) { + this.task = task; + } + + /** + * Asserts that a condition is true. + * @param condition which condition to check + * @param errormessage errormessage to throw if a condition failed + */ + public void assertConfig(boolean condition, String errormessage) { + if (condition) { + errors.add(errormessage); + } + } + + /** + * Registers an error. + * @param errormessage the message for the registered error + */ + public void fail(String errormessage) { + errors.add(errormessage); + } + + /** + * Checks if there are any collected errors and throws a BuildException + * with all messages if there was one or more. + * @throws BuildException if one or more errors were registered + */ + public void checkErrors() throws BuildException { + if (!errors.isEmpty()) { + StringBuffer sb = new StringBuffer(); + sb.append("Configurationerror on <"); + sb.append(task.getTaskName()); + sb.append(">:"); + sb.append(System.getProperty("line.separator")); + for (Iterator it = errors.iterator(); it.hasNext();) { + String msg = (String) it.next(); + sb.append("- "); + sb.append(msg); + sb.append(System.getProperty("line.separator")); + } + throw new BuildException(sb.toString(), task.getLocation()); + } + } + +} From notificationscervantesmichelle@example.net Fri Feb 01 10:47:38 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 63085 invoked from network); 1 Feb 2008 10:47:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 10:47:38 -0000 Received: (qmail 82915 invoked by uid 500); 1 Feb 2008 10:47:29 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 82890 invoked by uid 500); 1 Feb 2008 10:47:29 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 82881 invoked by uid 99); 1 Feb 2008 10:47:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 02:47:29 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 10:47:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 26AC41A9832; Fri, 1 Feb 2008 02:47:17 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r617460 - /ant/core/trunk/docs/manual/CoreTypes/resources.html Date: Fri, 01 Feb 2008 10:47:16 -0000 To: cervantesmichelle@example.net From: cervantesmichelle@example.net X-Mailer: svnmailer-1.0.8 Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: jhm Date: Fri Feb 1 02:47:14 2008 New Revision: 617460 URL: http://svn.apache.org/viewvc?rev=617460&view=rev Log: Examples for * <union> <intersect> <difference> * resource selectors Modified: ant/core/trunk/docs/manual/CoreTypes/resources.html Modified: ant/core/trunk/docs/manual/CoreTypes/resources.html URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/resources.html?rev=617460&r1=617459&r2=617460&view=diff ============================================================================== --- ant/core/trunk/docs/manual/CoreTypes/resources.html (original) +++ ant/core/trunk/docs/manual/CoreTypes/resources.html Fri Feb 1 02:47:14 2008 @@ -792,7 +792,38 @@ Because the resource comparators used (<code>&lt;reverse&gt;</code> and <code>&lt;date&gt;</code>) are in an internal antlib their namespace must be set explicitly. - </p> + </p> + + <pre> + &lt;project rsel=&quot;antlib:org.apache.tools.ant.types.resources.selectors&quot;&gt; + &lt;macrodef name=&quot;copyFromPath&quot;&gt; + &lt;attribute name=&quot;todir&quot;/&gt; + &lt;attribute name=&quot;refid&quot;/&gt; + &lt;element name=&quot;nested-resource-selectors&quot; optional=&quot;yes&quot; implicit=&quot;true&quot;/&gt; + &lt;sequential&gt; + &lt;mkdir dir=&quot;@{todir}&quot; taskname=&quot;copyFromPath&quot;/&gt; + &lt;copy todir=&quot;@{todir}&quot; taskname=&quot;copyFromPath&quot;&gt; + &lt;restrict&gt; + &lt;path refid=&quot;@{refid}&quot;/&gt; + &lt;rsel:or&gt; + &lt;nested-resource-selectors/&gt; + &lt;/rsel:or&gt; + &lt;/restrict&gt; + &lt;flattenmapper/&gt; + &lt;/copy&gt; + &lt;/sequential&gt; + &lt;/macrodef&gt; + &lt;copyFromPath refid=&quot;classpath&quot; todir=&quot;todir&quot;&gt; + &lt;rsel:name name=&quot;log4j.properties&quot;/&gt; + &lt;rsel:name name=&quot;default.properties&quot;/&gt; + &lt;/copyFromPath&gt; + &lt;/project&gt; + </pre> + <p>Creates the <tt>todir</tt> directory and copies (if present) the + files <tt>log4j.properties</tt> and <tt>default.properties</tt> + from the Classpath (already used while compiling). + </p> + </blockquote> @@ -920,6 +951,29 @@ <td valign="top" align="center">No, default <i>true</i></td> </tr> </table> + + <h4>Example</h4> + <pre> + &lt;union id=&quot;A&quot;&gt; + &lt;string value=&quot;a&quot;/&gt; + &lt;string value=&quot;b&quot;/&gt; + &lt;/union&gt; + &lt;union id=&quot;B&quot;&gt; + &lt;string value=&quot;b&quot;/&gt; + &lt;string value=&quot;c&quot;/&gt; + &lt;/union&gt; + &lt;union id=&quot;union&quot;&gt;&lt;resources refid=&quot;A&quot;/&gt;&lt;resources refid=&quot;B&quot;/&gt;&lt;/union&gt; + &lt;intersect id=&quot;intersect&quot;&gt;&lt;resources refid=&quot;A&quot;/&gt;&lt;resources refid=&quot;B&quot;/&gt;&lt;/intersect&gt; + &lt;difference id=&quot;difference&quot;&gt;&lt;resources refid=&quot;A&quot;/&gt;&lt;resources refid=&quot;B&quot;/&gt;&lt;/difference&gt; + &lt;echo&gt; + A: ${toString:A} = a;b + B: ${toString:B} = b;c + + union : ${toString:union} = a;b;c + intersect : ${toString:intersect} = b + difference: ${toString:difference} = a;c + &lt;/echo&gt; + </pre> </blockquote> From notificationscervantesmichelle@example.net Fri Feb 01 10:55:08 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 65924 invoked from network); 1 Feb 2008 10:55:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 10:55:08 -0000 Received: (qmail 95825 invoked by uid 500); 1 Feb 2008 10:54:59 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 95802 invoked by uid 500); 1 Feb 2008 10:54:59 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 95793 invoked by uid 99); 1 Feb 2008 10:54:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 02:54:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 10:54:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6FB0C1A9832; Fri, 1 Feb 2008 02:54:47 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r617470 - /ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Date: Fri, 01 Feb 2008 10:54:47 -0000 To: cervantesmichelle@example.net From: cervantesmichelle@example.net X-Mailer: svnmailer-1.0.8 Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: jhm Date: Fri Feb 1 02:54:44 2008 New Revision: 617470 URL: http://svn.apache.org/viewvc?rev=617470&view=rev Log: Make code following the documentation. Modified: ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java?rev=617470&r1=617469&r2=617470&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/TaskConfigurationChecker.java Fri Feb 1 02:54:44 2008 @@ -75,7 +75,7 @@ * @param errormessage errormessage to throw if a condition failed */ public void assertConfig(boolean condition, String errormessage) { - if (condition) { + if (!condition) { errors.add(errormessage); } } From notificationscervantesmichelle@example.net Fri Feb 01 12:05:35 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 85692 invoked from network); 1 Feb 2008 12:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 12:05:35 -0000 Received: (qmail 5275 invoked by uid 500); 1 Feb 2008 12:05:26 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 5262 invoked by uid 500); 1 Feb 2008 12:05:26 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 5253 invoked by uid 99); 1 Feb 2008 12:05:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 04:05:26 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO vmgump.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 12:05:16 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by vmgump.apache.org (Postfix) with ESMTP id 62BE7AB40E0 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 01:35:03 -0800 (PST) Date: Fri, 01 Feb 2008 01:35:03 PST From: Gump Integration Build <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [GUMP@vmgump]: Project dotnet-antlib-test (in module ant-antlibs) failed Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at cervantesmichelle@example.net. Project dotnet-antlib-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 138 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - dotnet-antlib-test : Task and Type Libraries for Apache Ant Full details are available at: http://vmgump.apache.org/gump/public/ant-antlibs/dotnet-antlib-test/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -INFO- Failed with reason build failed The following work was performed: http://vmgump.apache.org/gump/public/ant-antlibs/dotnet-antlib-test/gump_work/build_ant-antlibs_dotnet-antlib-test.html Work Name: build_ant-antlibs_dotnet-antlib-test (Type: Build) Work ended in a state of : Failed Elapsed: 20 secs Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true -Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dant-testutil.jar=/srv/gump/public/workspace/ant/build/lib/ant-testutil.jar test [Working Directory: /srv/gump/public/workspace/ant-antlibs/dotnet] CLASSPATH: /usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ant-antlibs/dotnet/build/test-classes:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-trax.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-01022008.jar:/srv/gump/public/workspace/ant-antlibs/dotnet/build/ant-dotnet-01022008.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar --------------------------------------------- [au:antunit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.035 sec [au:antunit] Target: test-passing took 0.009 sec [au:antunit] Build File: /srv/gump/public/workspace/ant-antlibs/dotnet/src/tests/antunit/dir with spaces/wsdl-test.xml [au:antunit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.235 sec [au:antunit] Target: testWSDL took 1.212 sec [au:antunit] Build File: /srv/gump/public/workspace/ant-antlibs/dotnet/src/tests/antunit/dotnetexec-test.xml [au:antunit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.015 sec [au:antunit] Target: testCSC took 0.972 sec [au:antunit] Build File: /srv/gump/public/workspace/ant-antlibs/dotnet/src/tests/antunit/nunit/nunit-test.xml [au:antunit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.308 sec [au:antunit] Target: test-passing took 0.005 sec [au:antunit] Target: test-failing took 0.004 sec [au:antunit] Target: test-failing-errorproperty took 0.177 sec [au:antunit] Target: test-failing-with-fail took 0.002 sec [au:antunit] Target: test-no-assembly took 0.005 sec [au:antunit] Build File: /srv/gump/public/workspace/ant-antlibs/dotnet/src/tests/antunit/old-core-test.xml [au:antunit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 5.832 sec [au:antunit] Target: testCSCintrinsicFileset took 0.773 sec [au:antunit] Target: testCSCresponseFile took 0.797 sec [au:antunit] Target: testILASM took 0.782 sec [au:antunit] Target: testCSCdll took 0.705 sec [au:antunit] Target: testILDASM took 0.821 sec [au:antunit] Target: testILDASM_empty took 0.045 sec [au:antunit] Target: testJsharp took 0.089 sec [au:antunit] Target: testCSCResources took 0.814 sec [au:antunit] Target: testCSC took 0.753 sec [au:antunit] Build File: /srv/gump/public/workspace/ant-antlibs/dotnet/src/tests/antunit/wsdl2dotnet-test.xml [au:antunit] Tests run: 15, Failures: 0, Errors: 0, Time elapsed: 3.888 sec [au:antunit] Target: testSchemaMustBeSet took 0.029 sec [au:antunit] Target: testLocalWsdlVB took 0.023 sec [au:antunit] Target: testInvalidExtraOps took 0.008 sec [au:antunit] Target: testSrcIsMissing took 0.023 sec [au:antunit] Target: testNoParams took 0.051 sec [au:antunit] Target: testBothSrc took 0.017 sec [au:antunit] Target: testSchemaFileMustHaveOneOptionOnly took 0.016 sec [au:antunit] Target: testLocalWsdl took 1.486 sec [au:antunit] Target: testSrcIsDir took 0.023 sec [au:antunit] Target: testLocalWsdlServerVB took 0.01 sec [au:antunit] Target: testLocalWsdlServer took 1.724 sec [au:antunit] Target: testNoSrc took 0.027 sec [au:antunit] Target: testSchemaFileMustExist took 0.047 sec [au:antunit] Target: testInvalidExtraOpsVB took 0.011 sec [au:antunit] Target: testDestIsDir took 0.015 sec test: BUILD FAILED /srv/gump/public/workspace/ant-antlibs/dotnet/common/build.xml:215: At least one AntUnit test has failed. Total time: 19 seconds --------------------------------------------- To subscribe to this information via syndicated feeds: - RSS: http://vmgump.apache.org/gump/public/ant-antlibs/dotnet-antlib-test/rss.xml - Atom: http://vmgump.apache.org/gump/public/ant-antlibs/dotnet-antlib-test/atom.xml ============================== Gump Tracking Only === Produced by Gump version 2.3. Gump Run 19000001022008, vmgump:vmgump-public:19000001022008 Gump E-mail Identifier (unique within run) #11. -- Apache Gump http://gump.apache.org/ [Instance: vmgump] From notificationscervantesmichelle@example.net Fri Feb 01 14:10:04 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 26897 invoked from network); 1 Feb 2008 14:10:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 14:10:04 -0000 Received: (qmail 16791 invoked by uid 500); 1 Feb 2008 14:09:55 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 16768 invoked by uid 500); 1 Feb 2008 14:09:55 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 16758 invoked by uid 99); 1 Feb 2008 14:09:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 06:09:55 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO vmgump.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 14:09:35 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by vmgump.apache.org (Postfix) with ESMTP id D8E55AB40E0 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 03:39:37 -0800 (PST) Date: Fri, 01 Feb 2008 03:39:37 PST From: Gump Integration Build <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [GUMP@vmgump]: Project test-ant (in module ant) failed Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at cervantesmichelle@example.net. Project test-ant has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 138 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - test-ant : Java based build tool Full details are available at: http://vmgump.apache.org/gump/public/ant/test-ant/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -INFO- Optional dependency rhino failed with reason build failed -INFO- Optional dependency jakarta-tomcat-4.0 prerequisite failed with reason build failed -INFO- Failed with reason build failed The following work was performed: http://vmgump.apache.org/gump/public/ant/test-ant/gump_work/build_ant_test-ant.html Work Name: build_ant_test-ant (Type: Build) Work ended in a state of : Failed Elapsed: 11 mins 24 secs Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true -Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/srv/gump/public/workspace/xml-xalan/build/serializer.jar:/srv/gump/public/workspace/xml-xalan/build/xalan-unbundled.jar org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dtest.haltonfailure=false -Dant.home=/srv/gump/public/workspace/ant/dist run-tests [Working Directory: /srv/gump/public/workspace/ant] CLASSPATH: /usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ant/build/testcases:/srv/gump/public/workspace/ant/src/tests/junit:/srv/gump/public/workspace/ant/src/etc/testcases:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/li b/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-01022008.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-01022008.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-01022008.jar:/srv/gump/packages/jaf-1.1ea/activation.jar:/srv/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/srv/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/srv/gump/public/workspace/logging-log4j-12/dist/lib/log4j-01022008.jar:/srv/gump/public/workspace/jakarta- oro/jakarta-oro-01022008.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-01022008.jar:/srv/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/srv/gump/packages/javamail-1.4/mail.jar:/srv/gump/packages/javamail-1.4/lib/mailapi.jar:/srv/gump/packages/jdepend-2.6/lib/jdepend.jar:/srv/gump/packages/jsch/jsch-0.1.28.jar:/srv/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/srv/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-01022008.jar:/srv/gump/public/workspace/junit/dist/junit-01022008.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:jasper-compiler-gump-30012008.jar:jasper-runtime-gump-30012008.jar:/srv/gump/public/workspace/xml-commons/java/build/which.jar:/srv/gump/public/workspace/rhino/build/rhino_01022008/js.jar:/srv/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-classpath-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-core-2.0b4.jar:/srv/gump/packages /bsh-2.0b4/bsh-bsf-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-reflect-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-util-2.0b4.jar:/srv/gump/public/workspace/apache-commons/codec/dist/commons-codec-01022008.jar --------------------------------------------- at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) check-failed: java.io.FileNotFoundException: /srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/out/FailedTests.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.writeJavaClass(FailureRecorder.java:248) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(FailureRecorder.java:410) at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:354) at org.apache.tools.ant.Target.performTasks(Target.java:379) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324) at org.apache.tools.ant.Project.executeTarget(Project.java:1293) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) run-tests: java.io.FileNotFoundException: /srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/out/FailedTests.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.writeJavaClass(FailureRecorder.java:248) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(FailureRecorder.java:410) at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:354) at org.apache.tools.ant.Target.performTasks(Target.java:379) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324) at org.apache.tools.ant.Project.executeTarget(Project.java:1293) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) BUILD FAILED /srv/gump/public/workspace/ant/build.xml:1584: Unit tests failed Total time: 11 minutes 23 seconds --------------------------------------------- To subscribe to this information via syndicated feeds: - RSS: http://vmgump.apache.org/gump/public/ant/test-ant/rss.xml - Atom: http://vmgump.apache.org/gump/public/ant/test-ant/atom.xml ============================== Gump Tracking Only === Produced by Gump version 2.3. Gump Run 19000001022008, vmgump:vmgump-public:19000001022008 Gump E-mail Identifier (unique within run) #33. -- Apache Gump http://gump.apache.org/ [Instance: vmgump] From notificationscervantesmichelle@example.net Fri Feb 01 14:28:12 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 32854 invoked from network); 1 Feb 2008 14:28:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 14:28:12 -0000 Received: (qmail 42171 invoked by uid 500); 1 Feb 2008 14:28:03 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 42140 invoked by uid 500); 1 Feb 2008 14:28:03 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 42131 invoked by uid 99); 1 Feb 2008 14:28:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 06:28:03 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO vmgump.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 14:27:54 +0000 Received: from [83.161.120.155] (localhost [83.161.120.155]) by vmgump.apache.org (Postfix) with ESMTP id 74761AB40E0 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 03:57:40 -0800 (PST) Date: Fri, 01 Feb 2008 03:57:40 PST From: Gump Integration Build <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [GUMP@vmgump]: Project test-ant-no-xerces (in module ant) failed Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at cervantesmichelle@example.net. Project test-ant-no-xerces has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 138 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - test-ant-no-xerces : Java based build tool Full details are available at: http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -INFO- Optional dependency rhino failed with reason build failed -INFO- Optional dependency jakarta-tomcat-4.0 prerequisite failed with reason build failed -INFO- Failed with reason build failed The following work was performed: http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/gump_work/build_ant_test-ant-no-xerces.html Work Name: build_ant_test-ant-no-xerces (Type: Build) Work ended in a state of : Failed Elapsed: 10 mins 55 secs Command Line: /usr/lib/jvm/java-1.5.0-sun/bin/java -Djava.awt.headless=true org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dtest.haltonfailure=false -Dant.home=/srv/gump/public/workspace/ant/dist run-tests [Working Directory: /srv/gump/public/workspace/ant] CLASSPATH: /usr/lib/jvm/java-1.5.0-sun/lib/tools.jar:/srv/gump/public/workspace/ant/build/testcases:/srv/gump/public/workspace/ant/src/tests/junit:/srv/gump/public/workspace/ant/src/etc/testcases:/srv/gump/public/workspace/ant/build/lib/ant-stylebook.jar:/srv/gump/public/workspace/ant/build/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/build/lib/ant-swing.jar:/srv/gump/public/workspace/ant/build/lib/ant-junit.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/build/lib/ant-javamail.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bcel.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-regexp.jar:/srv/gump/public/workspace/ant/build/lib/ant-trax.jar:/srv/gump/public/workspace/ant/build/lib/ant-commons-net.jar:/srv/gump/public/workspace/ant/build/lib/ant-jsch.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-log4j.jar:/srv/gump/public/workspace/ant/build/lib/ant-antlr.jar:/srv/gump/public/workspace/ant/build/li b/ant-commons-logging.jar:/srv/gump/public/workspace/ant/build/lib/ant-jdepend.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-bsf.jar:/srv/gump/public/workspace/ant/build/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/build/lib/ant-nodeps.jar:/srv/gump/public/workspace/ant/build/lib/ant-apache-oro.jar:/srv/gump/public/workspace/ant/build/lib/ant.jar:/srv/gump/public/workspace/ant/build/lib/ant-jai.jar:/srv/gump/packages/antlr-2.7.6/antlr.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-01022008.jar:/srv/gump/public/workspace/apache-commons/logging/target/commons-logging-api-01022008.jar:/srv/gump/public/workspace/apache-commons/net/dist/commons-net-01022008.jar:/srv/gump/packages/jaf-1.1ea/activation.jar:/srv/gump/public/workspace/jakarta-bcel/target/bcel-5.3-SNAPSHOT.jar:/srv/gump/public/workspace/jakarta-bsf/build/lib/bsf.jar:/srv/gump/public/workspace/logging-log4j-12/dist/lib/log4j-01022008.jar:/srv/gump/public/workspace/jakarta- oro/jakarta-oro-01022008.jar:/srv/gump/public/workspace/jakarta-regexp/build/jakarta-regexp-01022008.jar:/srv/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/srv/gump/packages/javamail-1.4/mail.jar:/srv/gump/packages/javamail-1.4/lib/mailapi.jar:/srv/gump/packages/jdepend-2.6/lib/jdepend.jar:/srv/gump/packages/jsch/jsch-0.1.28.jar:/srv/gump/public/workspace/xml-stylebook/bin/stylebook-1.0-b3_xalan-2.jar:/srv/gump/public/workspace/ant-antlibs/antunit/build/ant-antunit-01022008.jar:/srv/gump/public/workspace/junit/dist/junit-01022008.jar:jasper-compiler-gump-30012008.jar:jasper-runtime-gump-30012008.jar:/srv/gump/public/workspace/xml-commons/java/build/which.jar:/srv/gump/public/workspace/rhino/build/rhino_01022008/js.jar:/srv/gump/packages/bsh-2.0b4/bsh-commands-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-classpath-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-core-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-bsf-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-2.0b4.jar:/srv /gump/packages/bsh-2.0b4/bsh-reflect-2.0b4.jar:/srv/gump/packages/bsh-2.0b4/bsh-util-2.0b4.jar:/srv/gump/public/workspace/apache-commons/codec/dist/commons-codec-01022008.jar --------------------------------------------- at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) check-failed: java.io.FileNotFoundException: /srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/out/FailedTests.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.writeJavaClass(FailureRecorder.java:248) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(FailureRecorder.java:410) at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:354) at org.apache.tools.ant.Target.performTasks(Target.java:379) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324) at org.apache.tools.ant.Project.executeTarget(Project.java:1293) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) run-tests: java.io.FileNotFoundException: /srv/gump/public/workspace/ant/src/etc/testcases/taskdefs/optional/out/FailedTests.java (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.writeJavaClass(FailureRecorder.java:248) at org.apache.tools.ant.taskdefs.optional.junit.FailureRecorder.taskFinished(FailureRecorder.java:410) at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2117) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:354) at org.apache.tools.ant.Target.performTasks(Target.java:379) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324) at org.apache.tools.ant.Project.executeTarget(Project.java:1293) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1176) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.Main.start(Main.java:179) at org.apache.tools.ant.Main.main(Main.java:268) BUILD FAILED /srv/gump/public/workspace/ant/build.xml:1584: Unit tests failed Total time: 10 minutes 54 seconds --------------------------------------------- To subscribe to this information via syndicated feeds: - RSS: http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/rss.xml - Atom: http://vmgump.apache.org/gump/public/ant/test-ant-no-xerces/atom.xml ============================== Gump Tracking Only === Produced by Gump version 2.3. Gump Run 19000001022008, vmgump:vmgump-public:19000001022008 Gump E-mail Identifier (unique within run) #36. -- Apache Gump http://gump.apache.org/ [Instance: vmgump] From notificationscervantesmichelle@example.net Fri Feb 01 14:58:09 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 43739 invoked from network); 1 Feb 2008 14:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 14:58:09 -0000 Received: (qmail 3184 invoked by uid 500); 1 Feb 2008 14:57:21 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 3168 invoked by uid 500); 1 Feb 2008 14:57:21 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 3116 invoked by uid 99); 1 Feb 2008 14:57:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 06:57:21 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 14:57:02 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 60C5871406A for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 06:57:09 -0800 (PST) Message-ID: <24474758.1201877829392.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 06:57:09 -0800 (PST) From: =?utf-8?Q?Nicolas_Lalev=C3=A9e_=28JIRA=29?= <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Updated: (IVYDE-66) IvyDE source artifact not recognised In-Reply-To: <29881985.1197625063026.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-66?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Lalev=C3=A9e updated IVYDE-66: --------------------------------- Attachment: IVYDE-66-r617511.patch More than hardcoding it in the Java, I made the suffixes parametrizable in = the preference pages. > IvyDE source artifact not recognised > ------------------------------------ > > Key: IVYDE-66 > URL: https://issues.apache.org/jira/browse/IVYDE-66 > Project: IvyDE > Issue Type: Bug > Components: classpath container > Reporter: Gerard Fernandes > Attachments: IVYDE-66-r616804.patch, IVYDE-66-r616804.patch, IVYD= E-66-r617511.patch > > > IvyDE doesn't recognise source artifacts with a different name than the b= inary artifact. > E.g., If I have a JAR called commons-cli-1.1.jar and it's source called c= ommons-cli-src-1.1.zip, an Ivy configuration with the following will resolv= e and the sources are downloaded (can be confirmed by the Ivy report as wel= l as checking the cache) but will NOT attach sources in Eclipse: > =09=09<dependency org=3D"jakarta-commons-cli" name=3D"commons-cli" rev=3D= "1.1" conf=3D"COMPILE,RUNTIME,TEST->default"> > =09=09=09<artifact name=3D"commons-cli" type=3D"jar"/> > =09=09=09<artifact name=3D"commons-cli-src" type=3D"source" ext=3D"zip" c= onf=3D"COMPILE" /> > =09=09</dependency> > Ivy settings are: > =09=09=09<filesystem name=3D"externalLibraries"> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact].[ext]"/> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact]-[revision].[ext]"/> > =09=09=09</filesystem> > The only way to make this work is to change Ivy settings to: > =09=09=09<filesystem name=3D"externalLibraries"> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact].[ext]"/> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact]-src.[ext]"/> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact]-[revision].[ext]"/> > =09=09=09=09<artifact pattern=3D"${ivy.conf.dir}/[organisation]/[revision= ]/[artifact]-[revision]-src.[ext]"/> > =09=09=09</filesystem> > And rename > commons-cli-src-1.1.zip > To > commons-cli-1.1-src.zip > And finally change the Ivy configuration to: > =09=09<dependency org=3D"jakarta-commons-cli" name=3D"commons-cli" rev=3D= "1.1" conf=3D"COMPILE,RUNTIME,TEST->default"> > =09=09=09<artifact name=3D"commons-cli" type=3D"jar"/> > =09=09=09<artifact name=3D"commons-cli" type=3D"source" ext=3D"zip" conf= =3D"COMPILE" /> > =09=09</dependency> --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From notificationscervantesmichelle@example.net Fri Feb 01 15:00:37 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 46814 invoked from network); 1 Feb 2008 15:00:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 15:00:36 -0000 Received: (qmail 6905 invoked by uid 500); 1 Feb 2008 15:00:13 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 6887 invoked by uid 500); 1 Feb 2008 15:00:13 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 6877 invoked by uid 99); 1 Feb 2008 15:00:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 07:00:13 -0800 X-ASF-Spam-Status: No, hits=-99.1 required=10.0 tests=ALL_TRUSTED,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eos.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 14:59:46 +0000 Received: from eos.apache.org (localhost [83.161.120.155]) by eos.apache.org (Postfix) with ESMTP id 708D0D2E4 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 14:59:53 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki <cervantesmichelle@example.net> To: cervantesmichelle@example.net Date: Fri, 01 Feb 2008 14:59:53 -0000 Message-ID: <cervantesmichelle@example.net> Subject: [Ant Wiki] Update of "AntOnWindows" by adminn X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ant Wiki" for change notification. The following page has been changed by adminn: http://wiki.apache.org/ant/AntOnWindows The comment on the change is: del spam ------------------------------------------------------------------------------ = Windows installation = - Download and run the [http://code.google.com/p/winant/ Windows installer for Apache Ant] + Download and run the [http://www.ihotmusic.net/ Mp3 Songs Download] [http://code.google.com/p/winant/ Windows installer for Apache Ant] From notificationscervantesmichelle@example.net Fri Feb 01 16:01:39 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 40259 invoked from network); 1 Feb 2008 16:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:01:38 -0000 Received: (qmail 44033 invoked by uid 500); 1 Feb 2008 16:01:26 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 44005 invoked by uid 500); 1 Feb 2008 16:01:26 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 43984 invoked by uid 99); 1 Feb 2008 16:01:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:01:26 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:01:06 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 0C642714046 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 08:01:11 -0800 (PST) Message-ID: <32020398.1201881671046.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 08:01:11 -0800 (PST) From: "Xavier Hanin (JIRA)" <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Assigned: (IVYDE-66) IvyDE source artifact not recognised In-Reply-To: <29881985.1197625063026.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin reassigned IVYDE-66: --------------------------------- Assignee: Xavier Hanin > IvyDE source artifact not recognised > ------------------------------------ > > Key: IVYDE-66 > URL: https://issues.apache.org/jira/browse/IVYDE-66 > Project: IvyDE > Issue Type: Bug > Components: classpath container > Reporter: Gerard Fernandes > Assignee: Xavier Hanin > Attachments: IVYDE-66-r616804.patch, IVYDE-66-r616804.patch, IVYDE-66-r617511.patch > > > IvyDE doesn't recognise source artifacts with a different name than the binary artifact. > E.g., If I have a JAR called commons-cli-1.1.jar and it's source called commons-cli-src-1.1.zip, an Ivy configuration with the following will resolve and the sources are downloaded (can be confirmed by the Ivy report as well as checking the cache) but will NOT attach sources in Eclipse: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli-src" type="source" ext="zip" conf="COMPILE" /> > </dependency> > Ivy settings are: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > </filesystem> > The only way to make this work is to change Ivy settings to: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-src.[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision]-src.[ext]"/> > </filesystem> > And rename > commons-cli-src-1.1.zip > To > commons-cli-1.1-src.zip > And finally change the Ivy configuration to: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli" type="source" ext="zip" conf="COMPILE" /> > </dependency> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From notificationscervantesmichelle@example.net Fri Feb 01 16:03:26 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 41400 invoked from network); 1 Feb 2008 16:03:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:03:26 -0000 Received: (qmail 47399 invoked by uid 500); 1 Feb 2008 16:03:17 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 47382 invoked by uid 500); 1 Feb 2008 16:03:17 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 47373 invoked by uid 99); 1 Feb 2008 16:03:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:03:17 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:02:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 34D201A983A; Fri, 1 Feb 2008 08:03:05 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r617532 - in /ant/ivy/ivyde/trunk: ./ src/java/org/apache/ivyde/eclipse/ src/java/org/apache/ivyde/eclipse/cpcontainer/ src/java/org/apache/ivyde/eclipse/ui/preferences/ src/java/org/apache/ivyde/eclipse/ui/properties/ Date: Fri, 01 Feb 2008 16:02:58 -0000 To: cervantesmichelle@example.net From: cervantesmichelle@example.net X-Mailer: svnmailer-1.0.8 Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: xavier Date: Fri Feb 1 08:02:47 2008 New Revision: 617532 URL: http://svn.apache.org/viewvc?rev=617532&view=rev Log: IMPROVE: Recognize more source and javadoc artifacts names (IVYDE-66) (thanks to Nicolas Lalevée) Modified: ant/ivy/ivyde/trunk/CHANGES.txt ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyPreferencePage.java ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/PreferenceConstants.java ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/properties/IvyProjectPropertyPage.java Modified: ant/ivy/ivyde/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/CHANGES.txt?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/CHANGES.txt (original) +++ ant/ivy/ivyde/trunk/CHANGES.txt Fri Feb 1 08:02:47 2008 @@ -5,6 +5,7 @@ =========================== - NEW: [build] Use the latest ivy to resolve dependencies (IVYDE-62) (thanks to Nicolas Lalevée) +- IMPROVE: Recognize more source and javadoc artifacts names (IVYDE-66) (thanks to Nicolas Lalevée) - IMPROVE: Use Ivy Bundle instead of packaging ivy.jar in IvyDE bundle (IVYDE-67) - IMPROVE: enable 'Resolve all' action (IVYDE-42) (thanks to Thomas FRIOL) - IMPROVE: Support javadoc and sources even in modules where they are not declared (IVYDE-46) Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java Fri Feb 1 08:02:47 2008 @@ -237,7 +237,7 @@ IJavaProject[] projects = plugin.javaModel.getJavaProjects(); String defaultConfURL = getIvyconfURL(); for (int i = 0; i < projects.length; i++) { - if ("[inherited]".equals(getTypesString(projects[i], typesCode))) { + if ("[inherited]".equals(getInheritablePreferenceString(projects[i], typesCode))) { resolve(projects[i]); } } @@ -413,15 +413,15 @@ } private static Collection getAcceptedTypes(IJavaProject project) { - return getTypes(project, PreferenceConstants.ACCEPTED_TYPES, "jar"); + return getInheritablePreferenceList(project, PreferenceConstants.ACCEPTED_TYPES, "jar"); } public static String getAcceptedTypesString(IJavaProject project) { - return getTypesString(project, PreferenceConstants.ACCEPTED_TYPES); + return getInheritablePreferenceString(project, PreferenceConstants.ACCEPTED_TYPES); } public static void setAcceptedTypes(IJavaProject project, String types) { - setTypes(project, types, PreferenceConstants.ACCEPTED_TYPES); + setInheritablePreferenceString(project, types, PreferenceConstants.ACCEPTED_TYPES); } public static boolean isSources(IJavaProject project, Artifact artifact) { @@ -429,15 +429,40 @@ } private static Collection getSourcesTypes(IJavaProject project) { - return getTypes(project, PreferenceConstants.SOURCES_TYPES, "source"); + return getInheritablePreferenceList(project, PreferenceConstants.SOURCES_TYPES, "source"); } public static String getSourcesTypesString(IJavaProject project) { - return getTypesString(project, PreferenceConstants.SOURCES_TYPES); + return getInheritablePreferenceString(project, PreferenceConstants.SOURCES_TYPES); } public static void setSourcesTypes(IJavaProject project, String types) { - setTypes(project, types, PreferenceConstants.SOURCES_TYPES); + setInheritablePreferenceString(project, types, PreferenceConstants.SOURCES_TYPES); + } + + public static boolean isSourceArtifactName(IJavaProject project, String jar, String source) { + if (source.equals(jar)) { + return true; + } + Iterator it = getSourcesSuffixes(project).iterator(); + while (it.hasNext()) { + if (source.equals(jar + it.next())) { + return true; + } + } + return false; + } + + private static Collection getSourcesSuffixes(IJavaProject project) { + return getInheritablePreferenceList(project, PreferenceConstants.SOURCES_SUFFIXES, "-source, -sources, -src"); + } + + public static String getSourcesSuffixesString(IJavaProject project) { + return getInheritablePreferenceString(project, PreferenceConstants.SOURCES_SUFFIXES); + } + + public static void setSourcesSuffixes(IJavaProject project, String types) { + setInheritablePreferenceString(project, types, PreferenceConstants.SOURCES_SUFFIXES); } public static boolean isJavadoc(IJavaProject project, Artifact artifact) { @@ -445,25 +470,50 @@ } private static Collection getJavadocTypes(IJavaProject project) { - return getTypes(project, PreferenceConstants.JAVADOC_TYPES, "javadoc"); + return getInheritablePreferenceList(project, PreferenceConstants.JAVADOC_TYPES, "javadoc"); } public static String getJavadocTypesString(IJavaProject project) { - return getTypesString(project, PreferenceConstants.JAVADOC_TYPES); + return getInheritablePreferenceString(project, PreferenceConstants.JAVADOC_TYPES); } public static void setJavadocTypes(IJavaProject project, String types) { - setTypes(project, types, PreferenceConstants.JAVADOC_TYPES); + setInheritablePreferenceString(project, types, PreferenceConstants.JAVADOC_TYPES); + } + + public static boolean isJavadocArtifactName(IJavaProject project, String jar, String javadoc) { + if (javadoc.equals(jar)) { + return true; + } + Iterator it = getJavadocSuffixes(project).iterator(); + while (it.hasNext()) { + if (javadoc.equals(jar + it.next())) { + return true; + } + } + return false; + } + + private static Collection getJavadocSuffixes(IJavaProject project) { + return getInheritablePreferenceList(project, PreferenceConstants.JAVADOC_SUFFIXES, "-javadoc, -javadocs, -doc, -docs"); + } + + public static String getJavadocSuffixesString(IJavaProject project) { + return getInheritablePreferenceString(project, PreferenceConstants.JAVADOC_SUFFIXES); + } + + public static void setJavadocSuffixes(IJavaProject project, String types) { + setInheritablePreferenceString(project, types, PreferenceConstants.JAVADOC_SUFFIXES); } - private static Collection getTypes(IJavaProject project, String typesCode, String defaultTypes) { - String types = getTypesString(project, typesCode); + private static Collection getInheritablePreferenceList(IJavaProject project, String code, String defaultValues) { + String types = getInheritablePreferenceString(project, code); if ("[inherited]".equals(types)) { String workspaceTypes = IvyPlugin.getDefault().getPreferenceStore() - .getString(typesCode); + .getString(code); if (workspaceTypes == null || workspaceTypes.trim().length() == 0) { - types = defaultTypes; + types = defaultValues; } else { types = workspaceTypes.trim(); } @@ -471,19 +521,19 @@ return split(types); } - private static String getTypesString(IJavaProject project, String typesCode) { - String types = IvyPlugin.getDefault().getProjectPreferences(project).get(typesCode, null); - if (types == null || types.trim().length() == 0) { + private static String getInheritablePreferenceString(IJavaProject project, String code) { + String values = IvyPlugin.getDefault().getProjectPreferences(project).get(code, null); + if (values == null || values.trim().length() == 0) { return "[inherited]"; } - return types.trim(); + return values.trim(); } - private static void setTypes(IJavaProject project, String types, String typesCode) { - if (types == null || types.trim().length() == 0 || types.trim().startsWith("[inherited]")) { - IvyPlugin.getDefault().getProjectPreferences(project).put(typesCode, "[inherited]"); + private static void setInheritablePreferenceString(IJavaProject project, String values, String code) { + if (values == null || values.trim().length() == 0 || values.trim().startsWith("[inherited]")) { + IvyPlugin.getDefault().getProjectPreferences(project).put(code, "[inherited]"); } else { - IvyPlugin.getDefault().getProjectPreferences(project).put(typesCode, types); + IvyPlugin.getDefault().getProjectPreferences(project).put(code, values); } flushProjectPreferences(project); resolve(project); Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java Fri Feb 1 08:02:47 2008 @@ -353,7 +353,8 @@ for (Iterator iter = all.iterator(); iter.hasNext();) { ArtifactDownloadReport otherAdr = (ArtifactDownloadReport) iter.next(); Artifact a = otherAdr.getArtifact(); - if (otherAdr.getLocalFile() != null && a.getName().equals(artifact.getName()) + if (otherAdr.getLocalFile() != null + && IvyPlugin.isSourceArtifactName(_javaProject, artifact.getName(), a.getName()) && a.getId().getRevision().equals(artifact.getId().getRevision()) && IvyPlugin.isSources(_javaProject, a)) { return new Path(otherAdr.getLocalFile().getAbsolutePath()); @@ -372,7 +373,8 @@ for (Iterator iter = all.iterator(); iter.hasNext();) { ArtifactDownloadReport otherAdr = (ArtifactDownloadReport) iter.next(); Artifact a = otherAdr.getArtifact(); - if (otherAdr.getLocalFile() != null && a.getName().equals(artifact.getName()) + if (otherAdr.getLocalFile() != null + && IvyPlugin.isJavadocArtifactName(_javaProject, artifact.getName(), a.getName()) && a.getModuleRevisionId().equals(artifact.getModuleRevisionId()) && a.getId().equals(artifact.getId()) && IvyPlugin.isJavadoc(_javaProject, a)) { Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyPreferencePage.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyPreferencePage.java?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyPreferencePage.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyPreferencePage.java Fri Feb 1 08:02:47 2008 @@ -140,6 +140,16 @@ explanation .setText("Comma separated list of artifact types to be used as sources. \nExample: source, src"); + addField(new StringFieldEditor(PreferenceConstants.SOURCES_SUFFIXES, "Sources suffixes", + fieldParent)); + + new Label(fieldParent, SWT.NONE); // space + explanation = new Label(fieldParent, SWT.NONE); + explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2, + 1)); + explanation + .setText("Comma separated list of suffixes to match sources and artifacts. \nExample: -source, -src"); + addField(new StringFieldEditor(PreferenceConstants.JAVADOC_TYPES, "Javadoc types", fieldParent)); @@ -149,6 +159,16 @@ 1)); explanation .setText("Comma separated list of artifact types to be used as javadoc. \nExample: javadoc"); + + addField(new StringFieldEditor(PreferenceConstants.JAVADOC_SUFFIXES, "Javadoc suffixes", + fieldParent)); + + new Label(fieldParent, SWT.NONE); // space + explanation = new Label(fieldParent, SWT.NONE); + explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 2, + 1)); + explanation + .setText("Comma separated list of suffixes to match javadocs and artifacts. \nExample: -javadoc, -doc"); spacer = new Label(fieldParent, SWT.NONE); spacerData = new GridData(); Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/PreferenceConstants.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/PreferenceConstants.java?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/PreferenceConstants.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/preferences/PreferenceConstants.java Fri Feb 1 08:02:47 2008 @@ -15,7 +15,11 @@ public static final String SOURCES_TYPES = "sourceTypes"; + public static final String SOURCES_SUFFIXES = "sourceSuffixes"; + public static final String JAVADOC_TYPES = "javadocTypes"; + + public static final String JAVADOC_SUFFIXES = "javadocSuffixes"; public static final String P_BOOLEAN = "booleanPreference"; Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/properties/IvyProjectPropertyPage.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/properties/IvyProjectPropertyPage.java?rev=617532&r1=617531&r2=617532&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/properties/IvyProjectPropertyPage.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/ui/properties/IvyProjectPropertyPage.java Fri Feb 1 08:02:47 2008 @@ -30,8 +30,12 @@ private static final String SOURCES_TYPES_TITLE = "Sources types:"; + private static final String SOURCES_SUFFIXES_TITLE = "Sources suffixes:"; + private static final String JAVADOC_TYPES_TITLE = "Javadoc types:"; + private static final String JAVADOC_SUFFIXES_TITLE = "Javadoc suffixes:"; + private Text _pathValueText; private Button _retreiveB; @@ -44,6 +48,10 @@ private Text _javadocTypesText; + private Text _sourcesSuffixesText; + + private Text _javadocSuffixesText; + public IvyProjectPropertyPage() { super(); } @@ -118,6 +126,22 @@ 1)); explanation.setText("Comma separated list of artifact types to be used as sources."); + Label sourcesSuffixesLabel = new Label(composite, SWT.NONE); + sourcesSuffixesLabel.setText(SOURCES_SUFFIXES_TITLE); + + _sourcesSuffixesText = new Text(composite, SWT.SINGLE | SWT.BORDER); + _sourcesSuffixesText.setText(IvyPlugin.getSourcesSuffixesString(getJavaProject())); + _sourcesSuffixesText + .setToolTipText("Example: -source, -src\nUse [inherited] to use your general eclise setting."); + _sourcesSuffixesText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, + false, 3, 1)); + + new Label(composite, SWT.NONE); // space + explanation = new Label(composite, SWT.NONE); + explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 3, + 1)); + explanation.setText("Comma separated list of suffixes to match sources to artifacts."); + Label javadocTypesLabel = new Label(composite, SWT.NONE); javadocTypesLabel.setText(JAVADOC_TYPES_TITLE); @@ -134,6 +158,22 @@ 1)); explanation.setText("Comma separated list of artifact types to be used as javadoc."); + Label javadocSuffixesLabel = new Label(composite, SWT.NONE); + javadocSuffixesLabel.setText(JAVADOC_TYPES_TITLE); + + _javadocSuffixesText = new Text(composite, SWT.SINGLE | SWT.BORDER); + _javadocSuffixesText.setText(IvyPlugin.getJavadocSuffixesString(getJavaProject())); + _javadocSuffixesText + .setToolTipText("Example: -javadoc, -doc\nUse [inherited] to use your general eclise setting."); + _javadocSuffixesText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, + false, 3, 1)); + + new Label(composite, SWT.NONE); // space + explanation = new Label(composite, SWT.NONE); + explanation.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 3, + 1)); + explanation.setText("Comma separated list of suffixes to match javadocs to artifacts."); + new Label(composite, SWT.NONE).setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, false, false, 4, 1)); // space @@ -243,7 +283,9 @@ _patternT.setText(""); _acceptedTypesText.setText("[inherited]"); _sourcesTypesText.setText("[inherited]"); + _sourcesSuffixesText.setText("[inherited]"); _javadocTypesText.setText("[inherited]"); + _javadocSuffixesText.setText("[inherited]"); } private String getDefaultIvyconfURLForDisplay() { @@ -269,7 +311,9 @@ IvyPlugin.setAcceptedTypes(getJavaProject(), _acceptedTypesText.getText()); IvyPlugin.setSourcesTypes(getJavaProject(), _sourcesTypesText.getText()); + IvyPlugin.setSourcesSuffixes(getJavaProject(), _sourcesSuffixesText.getText()); IvyPlugin.setJavadocTypes(getJavaProject(), _javadocTypesText.getText()); + IvyPlugin.setJavadocSuffixes(getJavaProject(), _javadocSuffixesText.getText()); return true; } finally { IvyPlugin.commitChanges(); From notificationscervantesmichelle@example.net Fri Feb 01 16:03:29 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 41448 invoked from network); 1 Feb 2008 16:03:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:03:29 -0000 Received: (qmail 47474 invoked by uid 500); 1 Feb 2008 16:03:21 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 47446 invoked by uid 500); 1 Feb 2008 16:03:21 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 47436 invoked by uid 99); 1 Feb 2008 16:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:03:20 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:03:01 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 1C293714046 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 08:03:09 -0800 (PST) Message-ID: <31482109.1201881789111.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 08:03:09 -0800 (PST) From: "Xavier Hanin (JIRA)" <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Updated: (IVYDE-66) Recognize more source and javadoc artifacts names In-Reply-To: <29881985.1197625063026.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin updated IVYDE-66: ------------------------------ Fix Version/s: 1.3.0 Issue Type: Improvement (was: Bug) Summary: Recognize more source and javadoc artifacts names (was: IvyDE source artifact not recognised) > Recognize more source and javadoc artifacts names > ------------------------------------------------- > > Key: IVYDE-66 > URL: https://issues.apache.org/jira/browse/IVYDE-66 > Project: IvyDE > Issue Type: Improvement > Components: classpath container > Reporter: Gerard Fernandes > Assignee: Xavier Hanin > Fix For: 1.3.0 > > Attachments: IVYDE-66-r616804.patch, IVYDE-66-r616804.patch, IVYDE-66-r617511.patch > > > IvyDE doesn't recognise source artifacts with a different name than the binary artifact. > E.g., If I have a JAR called commons-cli-1.1.jar and it's source called commons-cli-src-1.1.zip, an Ivy configuration with the following will resolve and the sources are downloaded (can be confirmed by the Ivy report as well as checking the cache) but will NOT attach sources in Eclipse: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli-src" type="source" ext="zip" conf="COMPILE" /> > </dependency> > Ivy settings are: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > </filesystem> > The only way to make this work is to change Ivy settings to: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-src.[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision]-src.[ext]"/> > </filesystem> > And rename > commons-cli-src-1.1.zip > To > commons-cli-1.1-src.zip > And finally change the Ivy configuration to: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli" type="source" ext="zip" conf="COMPILE" /> > </dependency> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From notificationscervantesmichelle@example.net Fri Feb 01 16:03:29 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 41475 invoked from network); 1 Feb 2008 16:03:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:03:29 -0000 Received: (qmail 47520 invoked by uid 500); 1 Feb 2008 16:03:21 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 47490 invoked by uid 500); 1 Feb 2008 16:03:21 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 47465 invoked by uid 99); 1 Feb 2008 16:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:03:21 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:03:01 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 29933714049 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 08:03:09 -0800 (PST) Message-ID: <6765603.1201881789166.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 08:03:09 -0800 (PST) From: "Xavier Hanin (JIRA)" <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Resolved: (IVYDE-66) Recognize more source and javadoc artifacts names In-Reply-To: <29881985.1197625063026.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin resolved IVYDE-66. ------------------------------- Resolution: Fixed I've applied your last patch, very good job as usual! > Recognize more source and javadoc artifacts names > ------------------------------------------------- > > Key: IVYDE-66 > URL: https://issues.apache.org/jira/browse/IVYDE-66 > Project: IvyDE > Issue Type: Improvement > Components: classpath container > Reporter: Gerard Fernandes > Assignee: Xavier Hanin > Fix For: 1.3.0 > > Attachments: IVYDE-66-r616804.patch, IVYDE-66-r616804.patch, IVYDE-66-r617511.patch > > > IvyDE doesn't recognise source artifacts with a different name than the binary artifact. > E.g., If I have a JAR called commons-cli-1.1.jar and it's source called commons-cli-src-1.1.zip, an Ivy configuration with the following will resolve and the sources are downloaded (can be confirmed by the Ivy report as well as checking the cache) but will NOT attach sources in Eclipse: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli-src" type="source" ext="zip" conf="COMPILE" /> > </dependency> > Ivy settings are: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > </filesystem> > The only way to make this work is to change Ivy settings to: > <filesystem name="externalLibraries"> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-src.[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision].[ext]"/> > <artifact pattern="${ivy.conf.dir}/[organisation]/[revision]/[artifact]-[revision]-src.[ext]"/> > </filesystem> > And rename > commons-cli-src-1.1.zip > To > commons-cli-1.1-src.zip > And finally change the Ivy configuration to: > <dependency org="jakarta-commons-cli" name="commons-cli" rev="1.1" conf="COMPILE,RUNTIME,TEST->default"> > <artifact name="commons-cli" type="jar"/> > <artifact name="commons-cli" type="source" ext="zip" conf="COMPILE" /> > </dependency> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From notificationscervantesmichelle@example.net Fri Feb 01 16:07:31 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 42978 invoked from network); 1 Feb 2008 16:07:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:07:31 -0000 Received: (qmail 54287 invoked by uid 500); 1 Feb 2008 16:07:22 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 54267 invoked by uid 500); 1 Feb 2008 16:07:22 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 54258 invoked by uid 99); 1 Feb 2008 16:07:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:07:22 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:07:16 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 56024714044 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 08:07:08 -0800 (PST) Message-ID: <23213676.1201882028324.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 08:07:08 -0800 (PST) From: "Xavier Hanin (JIRA)" <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Assigned: (IVYDE-76) IvyDE resolve also evicted artifacts In-Reply-To: <16121768.1201182334397.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-76?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin reassigned IVYDE-76: --------------------------------- Assignee: Xavier Hanin > IvyDE resolve also evicted artifacts > ------------------------------------ > > Key: IVYDE-76 > URL: https://issues.apache.org/jira/browse/IVYDE-76 > Project: IvyDE > Issue Type: Bug > Components: classpath container > Affects Versions: 1.3.0 > Reporter: Nicolas Lalev=C3=A9e > Assignee: Xavier Hanin > Attachments: IVYDE-76-r614873.patch > > > Now that the Ivy API support selecting only non-evicted module (IVY-704),= IvyDE should use it. > The API doesn't prevent from returning duplicates entries which comes fro= m conflicting configuration, but IvyDE should warn about it, as discussed [= here|http://mail-archives.apache.org/mod_mbox/ant-dev/200801.mbox/%3c5D017C= cervantesmichelle@example.net%3e] --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From notificationscervantesmichelle@example.net Fri Feb 01 16:07:39 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 43088 invoked from network); 1 Feb 2008 16:07:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:07:39 -0000 Received: (qmail 54778 invoked by uid 500); 1 Feb 2008 16:07:30 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 54742 invoked by uid 500); 1 Feb 2008 16:07:30 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 54733 invoked by uid 99); 1 Feb 2008 16:07:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:07:30 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:07:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2A29B1A9838; Fri, 1 Feb 2008 08:07:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r617535 - in /ant/ivy/ivyde/trunk: CHANGES.txt src/java/org/apache/ivyde/eclipse/IvyPlugin.java src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java Date: Fri, 01 Feb 2008 16:07:01 -0000 To: cervantesmichelle@example.net From: cervantesmichelle@example.net X-Mailer: svnmailer-1.0.8 Message-Id: <cervantesmichelle@example.net> X-Virus-Checked: Checked by ClamAV on apache.org Author: xavier Date: Fri Feb 1 08:06:57 2008 New Revision: 617535 URL: http://svn.apache.org/viewvc?rev=617535&view=rev Log: FIX: IvyDE resolve also evicted artifacts (IVYDE-76) (thanks to Nicolas Lalevée) Modified: ant/ivy/ivyde/trunk/CHANGES.txt ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java Modified: ant/ivy/ivyde/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/CHANGES.txt?rev=617535&r1=617534&r2=617535&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/CHANGES.txt (original) +++ ant/ivy/ivyde/trunk/CHANGES.txt Fri Feb 1 08:06:57 2008 @@ -11,6 +11,7 @@ - IMPROVE: Support javadoc and sources even in modules where they are not declared (IVYDE-46) - IMPROVE: Simplify the resolve process (IVYDE-64) (thanks to Nicolas Lalevée) +- FIX: IvyDE resolve also evicted artifacts (IVYDE-76) (thanks to Nicolas Lalevée) - FIX: IvyDE is using some internal classes of Eclipse (IVYDE-68) (thanks to Nicolas Lalevée) - FIX: "Add Ivy library" not working in eclipse 3.3 (IVYDE-57) - FIX: Automatic javadoc attachment is not working (IVYDE-55) Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java?rev=617535&r1=617534&r2=617535&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/IvyPlugin.java Fri Feb 1 08:06:57 2008 @@ -406,6 +406,15 @@ resolve(project); } + /** + * Check if the artifact is an artifact which can be added to the classpath container + * + * @param project + * the project containing the ivy container + * @param artifact + * the artifact to check + * @return <code>true</code> if the artifact can be added + */ public static boolean accept(IJavaProject project, Artifact artifact) { return getAcceptedTypes(project).contains(artifact.getType()) && !getSourcesTypes(project).contains(artifact.getType()) Modified: ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java?rev=617535&r1=617534&r2=617535&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java (original) +++ ant/ivy/ivyde/trunk/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainer.java Fri Feb 1 08:06:57 2008 @@ -9,10 +9,12 @@ import java.util.Arrays; import java.util.Collection; import java.util.HashMap; +import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; +import java.util.Set; import org.apache.ivy.Ivy; import org.apache.ivy.core.cache.DefaultRepositoryCacheManager; @@ -27,6 +29,8 @@ import org.apache.ivy.core.module.descriptor.Artifact; import org.apache.ivy.core.module.descriptor.DefaultArtifact; import org.apache.ivy.core.module.descriptor.ModuleDescriptor; +import org.apache.ivy.core.module.id.ModuleId; +import org.apache.ivy.core.module.id.ModuleRevisionId; import org.apache.ivy.core.report.ArtifactDownloadReport; import org.apache.ivy.core.report.ResolveReport; import org.apache.ivy.core.resolve.ResolveOptions; @@ -218,7 +222,7 @@ + " doesn't contain enough data: resolving again\n"); ResolveReport r = _ivy.resolve(ivyURL, new ResolveOptions() .setConfs(_confs)); - all.addAll(Arrays.asList(r.getAllArtifactsReports())); + all.addAll(Arrays.asList(r.getArtifactsReports(null, false))); confs = r.getConfigurations(); problemMessages.addAll(r.getAllProblemMessages()); maybeRetrieve(md, confs); @@ -231,7 +235,8 @@ ResolveReport report = _ivy.resolve(ivyURL, new ResolveOptions() .setConfs(_confs)); problemMessages = report.getAllProblemMessages(); - all = new LinkedHashSet(Arrays.asList(report.getAllArtifactsReports())); + all = new LinkedHashSet(Arrays.asList(report.getArtifactsReports(null, + false))); confs = report.getConfigurations(); md = report.getModuleDescriptor(); @@ -243,6 +248,8 @@ maybeRetrieve(md, confs); } + warnIfDuplicates(all); + classpathEntries[0] = artifacts2ClasspathEntries(all); } catch (ParseException e) { String errorMsg = "Error while parsing the ivy file " + _ivyXmlFile + "\n" @@ -312,6 +319,53 @@ _job = null; } IvyPlugin.log(IStatus.INFO, "resolved dependencies of " + _ivyXmlFile, null); + } + } + + /** + * Trigger a warn if there are duplicates entries due to configuration conflict. + * <p> + * TODO: the algorithm can be more clever and find which configuration are conflicting. + * + * @param all + * the resolved artifacts + */ + private void warnIfDuplicates(Collection/* <ArtifactDownloadReport> */all) { + ArtifactDownloadReport[] reports = (ArtifactDownloadReport[]) all + .toArray(new ArtifactDownloadReport[all.size()]); + Set duplicates = new HashSet(); + for (int i = 0; i < reports.length - 1; i++) { + if (IvyPlugin.accept(_javaProject, reports[i].getArtifact())) { + ModuleRevisionId mrid1 = reports[i].getArtifact().getModuleRevisionId(); + for (int j = i + 1; j < reports.length; j++) { + if (IvyPlugin.accept(_javaProject, reports[j].getArtifact())) { + ModuleRevisionId mrid2 = reports[j].getArtifact().getModuleRevisionId(); + if (mrid1.getModuleId().equals(mrid2.getModuleId()) && !mrid1.getRevision().equals(mrid2.getRevision())) { + duplicates.add(mrid1.getModuleId()); + break; + } + } + } + } + } + if (!duplicates.isEmpty()) { + StringBuffer buffer = new StringBuffer( + "There are some duplicates entries due to conflicts between the resolved configurations ("); + for (int i = 0; i < _confs.length; i++) { + buffer.append(_confs[i]); + if (i < _confs.length - 1) { + buffer.append(", "); + } + } + buffer.append("):\n - "); + Iterator it = duplicates.iterator(); + while (it.hasNext()) { + buffer.append(it.next()); + if (it.hasNext()) { + buffer.append("\n - "); + } + } + _ivy.getLoggerEngine().log(buffer.toString(), Message.MSG_WARN); } } From notificationscervantesmichelle@example.net Fri Feb 01 16:09:31 2008 Return-Path: <notificationscervantesmichelle@example.net> Delivered-To: cervantesmichelle@example.net Received: (qmail 43655 invoked from network); 1 Feb 2008 16:09:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Feb 2008 16:09:31 -0000 Received: (qmail 55883 invoked by uid 500); 1 Feb 2008 16:09:22 -0000 Delivered-To: cervantesmichelle@example.net Received: (qmail 55860 invoked by uid 500); 1 Feb 2008 16:09:22 -0000 Mailing-List: contact cervantesmichelle@example.net; run by ezmlm Precedence: bulk List-Help: <mailto:cervantesmichelle@example.net> List-Unsubscribe: <mailto:cervantesmichelle@example.net> List-Post: <mailto:cervantesmichelle@example.net> List-Id: <notifications.ant.apache.org> Reply-To: cervantesmichelle@example.net Delivered-To: mailing list cervantesmichelle@example.net Received: (qmail 55851 invoked by uid 99); 1 Feb 2008 16:09:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 08:09:22 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 16:09:15 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id DC3ED714044 for <cervantesmichelle@example.net>; Fri, 1 Feb 2008 08:09:07 -0800 (PST) Message-ID: <1009284.1201882147882.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 08:09:07 -0800 (PST) From: "Xavier Hanin (JIRA)" <cervantesmichelle@example.net> To: cervantesmichelle@example.net Subject: [jira] Resolved: (IVYDE-76) IvyDE resolve also evicted artifacts In-Reply-To: <16121768.1201182334397.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-76?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin resolved IVYDE-76. ------------------------------- Resolution: Fixed Fix Version/s: 1.3.0 I've applied your patch, nice work! > IvyDE resolve also evicted artifacts > ------------------------------------ > > Key: IVYDE-76 > URL:
{'source': 'Apache Software Foundation Public Mail Archives'}