Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 91289 invoked from network); 24 Aug 2010 12:34:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 12:34:03 -0000 Received: (qmail 69576 invoked by uid 500); 24 Aug 2010 12:34:01 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 69500 invoked by uid 500); 24 Aug 2010 12:33:59 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 69486 invoked by uid 99); 24 Aug 2010 12:33:58 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 12:33:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 12:33:40 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7OCXJl4019791 for ; Tue, 24 Aug 2010 12:33:19 GMT Message-ID: <3664501.529581282653199105.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 08:33:19 -0400 (EDT) From: =?utf-8?Q?Nicolas_Lalev=C3=A9e_=28JIRA=29?= To: notifications@ant.apache.org Subject: [jira] Resolved: (IVYDE-248) Reload settings will not try to re-read ivysettings.xml file after failure to find file at start-up (possibly due to Eclipse variable substitution) In-Reply-To: <24983382.419521279287950770.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVYDE-248?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Lalev=C3=A9e resolved IVYDE-248. ----------------------------------- Assignee: Nicolas Lalev=C3=A9e Fix Version/s: 2.2.0 Resolution: Fixed IvyDE was doing magic conversion while reading old configuration. If the iv= ysettings was not found, it was converting it into a path in the workspace. > Reload settings will not try to re-read ivysettings.xml file after failur= e to find file at start-up (possibly due to Eclipse variable substitution) > -------------------------------------------------------------------------= -------------------------------------------------------------------------- > > Key: IVYDE-248 > URL: https://issues.apache.org/jira/browse/IVYDE-248 > Project: IvyDE > Issue Type: Bug > Components: classpath container > Affects Versions: 2.1.0 > Environment: Windows XP SP3, Eclipse 3.4 + 3.5 > Reporter: Anthony Di Loreto > Assignee: Nicolas Lalev=C3=A9e > Priority: Minor > Fix For: 2.2.0 > > > OVERVIEW > =3D=3D=3D=3D=3D=3D=3D=3D=3D > In running through several outage cases in our group's use of Ivy, I ran = into an interesting start-up case.=20 > Right now our common ivysettings.xml file is housed on a file share. If w= e have a network outage before the user starts up Eclipse, IvyDE will of co= urse give an error. However, when the file share becomes accessible again a= "Reload settings" from the ivy.xml container or a "Resolve" will still fai= l. I have also tested the much simpler case of simply renaming the ivysetti= ngs.xml file before starting Eclipse to simulate a file share disruption, w= hich also results in the same issue. > REPRO > =3D=3D=3D=3D=3D=3D > 1) > Have Eclipse setup with at least one project using Ivy/IvyDE and referenc= ing an ivysettings.xml file on a file system. (i.e. file:/path/to/ivysettin= gs.xml) > 2)=20 > Close Eclipse > 3) > Rename the ivysettings.xml file to something else > 4) > Launch Eclipse (now without access to the ivysettings.xml) and we get the= error: > Error while resolving the ivy instance for ivy.xml in 'MyIvyProject': > Unrecognized variables in the Ivy settings file ${workspace_loc:MyIvyPr= oject/P:/Ivy/common/ivysettings.xml} > Make note that it's considering the absolute file path a VARIABLE for som= e reason. > 4) > Rename the file back to ivysettings.xml > 5) > Attempt a resolve, reload, refresh, etc., all result in the same error: > Error while resolving the ivy instance for ivy.xml in 'MyIvyProject': > Unrecognized variables in the Ivy settings file ${workspace_loc:MyIvyPr= oject/P:/Ivy/common/ivysettings.xml} > Here is the stack trace: > org.apache.ivyde.eclipse.IvyDEException: Error while resolving the ivy in= stance for ivy.xml in 'MyIvyProject': > Unrecognized variables in the Ivy settings file ${workspace_loc:MyIvyPr= oject/P:/Ivy/common/ivysettings.xml} > =09at org.apache.ivyde.eclipse.cpcontainer.IvySettingsSetup.getResolvedIv= ySettingsPath(IvySettingsSetup.java:64) > =09at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfigura= tion.getInheritedIvySettingsPath(IvyClasspathContainerConfiguration.java:21= 3) > =09at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerState.doG= etIvy(IvyClasspathContainerState.java:144) > =09at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerState.get= Ivy(IvyClasspathContainerState.java:136) > =09at org.apache.ivyde.eclipse.cpcontainer.IvyResolveJob.run(IvyResolveJo= b.java:69) > =09at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > Caused by: org.eclipse.core.runtime.CoreException: Variable references no= n-existent resource : ${workspace_loc:MyIvyProject/P:/Ivy/common/ivysetting= s.xml} > =09at org.eclipse.debug.internal.core.variables.WorkspaceResolver.resolve= Value(WorkspaceResolver.java:56) > =09at org.eclipse.core.internal.variables.DynamicVariable.getValue(Dynami= cVariable.java:54) > =09at org.eclipse.core.internal.variables.StringSubstitutionEngine.resolv= e(StringSubstitutionEngine.java:267) > =09at org.eclipse.core.internal.variables.StringSubstitutionEngine.substi= tute(StringSubstitutionEngine.java:192) > =09at org.eclipse.core.internal.variables.StringSubstitutionEngine.perfor= mStringSubstitution(StringSubstitutionEngine.java:86) > =09at org.eclipse.core.internal.variables.StringVariableManager.performSt= ringSubstitution(StringVariableManager.java:573) > =09at org.apache.ivyde.eclipse.cpcontainer.IvySettingsSetup.getResolvedIv= ySettingsPath(IvySettingsSetup.java:62) > =09... 5 more > NOTES > =3D=3D=3D=3D=3D=3D > - Why is the file URL changing to a variable substitution? I used the "Fi= le System" button to select the file in the Classpath Container settings wi= ndow. > - This issue DOESN'T occur if during an Eclipse session you lose access t= o the file, attempt to reload settings (fail), restore the file, and attemp= t to reload again. > WORKAROUNDS > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - Close Eclipse, restore ivysettings.xml file, start Eclipse > - Go back in the Classpath Container settings window and press OK --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.