Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46B199005 for ; Sat, 4 Feb 2012 17:43:34 +0000 (UTC) Received: (qmail 35680 invoked by uid 500); 4 Feb 2012 17:43:34 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 35592 invoked by uid 500); 4 Feb 2012 17:43:32 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 35582 invoked by uid 99); 4 Feb 2012 17:43:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 17:43:32 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of nicolas.lalevee@hibnet.org does not designate 216.86.168.183 as permitted sender) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 17:43:23 +0000 Received: from [192.168.0.14] (unknown [82.248.38.87]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 0659250A64 for ; Sat, 4 Feb 2012 12:43:00 -0500 (EST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Eclipse build path loses Ivy library on reload From: =?iso-8859-1?Q?Nicolas_Lalev=E9e?= In-Reply-To: Date: Sat, 4 Feb 2012 18:42:58 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <93709D43-E6E4-4CF0-93A9-59C9787CE91E@hibnet.org> References: To: ivy-user@ant.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Le 3 f=E9vr. 2012 =E0 22:31, Nelson, Ryan a =E9crit : > I have a very odd problem here (possible bug?). When I open Eclipse, = or > when I close and re-open a project, Eclipse loses the Ivy library from > the build path. The entry in the .classpath file for the project does > not change: >=20 >=20 >=20 > >=20 > >=20 > path=3D"org.eclipse.jdt.launching.JRE_CONTAINER"/> >=20 > = path=3D"org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=3D= i > vy.xml&confs=3D*"/> >=20 > >=20 > >=20 >=20 >=20 > As you can see, the ivy.xml file is still listed as an entry, but if I > could take a screengrab of my Eclipse project, Ivy is not listed as a > library. >=20 >=20 >=20 > If I right-click the ivy.xml file and choose "Add Ivy Library..." and > click the Finish button, the library does get added back. However, = the > Add window doesn't close, and this error shows up in the log:=20 >=20 >=20 >=20 > Java Model Exception: Java Model Status [Build path contains duplicate > entry: > = 'org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?ivyXmlPath=3Divy.xm= > l&confs=3D*' for project 'adaptiveMathMotion'] >=20 > at > = org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelO > peration.java:784) >=20 > at > = org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.ja > va:3026) >=20 > at > = org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.ja > va:2988) >=20 > at > = org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.ja > va:3000) >=20 >=20 >=20 > So clearly when Eclipse goes to update the .classpath file it finds = that > the Ivy library is already there, but why isn't it loading it when the > project is opened? I see no other messages in any log file to > troubleshoot this problem. I think the IvyDE classpath container is still there even after a = close-reopen of the project. By default Eclipse doesn't show empty = library containers [1]. Then the question is why is it empty whereas before the close it was = properly resolved ? I don't know the answer, sometimes Eclipse = successfully save the state, sometimes it doesn't, I never figured out = why or how to make it work reliably. One work around is to enable the = resolve on startup [2], so with or without a savec classpath, a resolve = is launched so it could get properly populated. It consumes startup time = though. Nicolas [1] http://ant.apache.org/ivy/ivyde/faq.html#empty-container [2] = http://ant.apache.org/ivy/ivyde/history/latest-milestone/preferences.html#= global >=20 >=20 >=20 > Is this something I should log on JIRA? >=20 >=20 >=20 > Ryan >=20