You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Marc Batchelor (JIRA)" <ji...@apache.org> on 2010/06/21 14:16:22 UTC

[jira] Created: (IVYDE-247) Project variables not resolving when using Show In Reverse Dependency Explorer

Project variables not resolving when using Show In Reverse Dependency Explorer
------------------------------------------------------------------------------

                 Key: IVYDE-247
                 URL: https://issues.apache.org/jira/browse/IVYDE-247
             Project: IvyDE
          Issue Type: Bug
          Components: workspace resolver
    Affects Versions: 2.1.0
         Environment: Windows 7, Eclipse 3.5.2
            Reporter: Marc Batchelor


1- At workspace level (window->Preferences->Ivy->Settings), set "Ivy Settings Path" and "Property Files" as follows:
  Ivy Settings path: ${project_loc}/ivysettings.xml
  Property Files: ${project_loc}/build.properties

2- Have a project with dependencies

3- Right click on the project and resolve to make sure that it results properly

4- Right-click on this project and try "Show In Reverse Dependency Tree" - an exception happens:

Unable to find a module descriptor associated with D:/workspace/project/ivy.xml

Error while resolving the ivy instance for ivy.xml in
'project':
  Unrecognized variables in the Ivy settings file ${project_loc}/ivysettings.xml

Underlying error (org.eclipse.core.runtime.CoreException): Variable
references empty selection: ${project_loc}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVYDE-247) Project variables not resolving when using Show In Reverse Dependency Explorer

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVYDE-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901877#action_12901877 ] 

Nicolas Lalevée commented on IVYDE-247:
---------------------------------------

The root of the issue is that ${project_loc} depends of the current selection in the workspace. Eclipse's message is about that: "Underlying error (org.eclipse.core.runtime.CoreException): Variable references empty selection: ${project_loc}"

If you launch an Ivy resolve by selecting the project, it will effectively resolve correctly. Try on IvyDE's container, you will see that it fails just like the reverse dependency explorer.

I googled and I found that: http://blog.samratdhillon.com/archives/473

I understand though your usecase. I haven't found a way to properly do it with just Eclipse variables. If you do I would be glad to hear about.
Maybe IvyDE could do the substitution itself has it does know in which project the resolve does happen. But I would be worried about overriding Eclipse standard behavior about variables.

> Project variables not resolving when using Show In Reverse Dependency Explorer
> ------------------------------------------------------------------------------
>
>                 Key: IVYDE-247
>                 URL: https://issues.apache.org/jira/browse/IVYDE-247
>             Project: IvyDE
>          Issue Type: Bug
>          Components: workspace resolver
>    Affects Versions: 2.1.0
>         Environment: Windows 7, Eclipse 3.5.2
>            Reporter: Marc Batchelor
>
> 1- At workspace level (window->Preferences->Ivy->Settings), set "Ivy Settings Path" and "Property Files" as follows:
>   Ivy Settings path: ${project_loc}/ivysettings.xml
>   Property Files: ${project_loc}/build.properties
> 2- Have a project with dependencies
> 3- Right click on the project and resolve to make sure that it results properly
> 4- Right-click on this project and try "Show In Reverse Dependency Tree" - an exception happens:
> Unable to find a module descriptor associated with D:/workspace/project/ivy.xml
> Error while resolving the ivy instance for ivy.xml in
> 'project':
>   Unrecognized variables in the Ivy settings file ${project_loc}/ivysettings.xml
> Underlying error (org.eclipse.core.runtime.CoreException): Variable
> references empty selection: ${project_loc}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVYDE-247) Project variables not resolving when using Show In Reverse Dependency Explorer

Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVYDE-247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Lalevée updated IVYDE-247:
----------------------------------

    Issue Type: Improvement  (was: Bug)

> Project variables not resolving when using Show In Reverse Dependency Explorer
> ------------------------------------------------------------------------------
>
>                 Key: IVYDE-247
>                 URL: https://issues.apache.org/jira/browse/IVYDE-247
>             Project: IvyDE
>          Issue Type: Improvement
>          Components: workspace resolver
>    Affects Versions: 2.1.0
>         Environment: Windows 7, Eclipse 3.5.2
>            Reporter: Marc Batchelor
>
> 1- At workspace level (window->Preferences->Ivy->Settings), set "Ivy Settings Path" and "Property Files" as follows:
>   Ivy Settings path: ${project_loc}/ivysettings.xml
>   Property Files: ${project_loc}/build.properties
> 2- Have a project with dependencies
> 3- Right click on the project and resolve to make sure that it results properly
> 4- Right-click on this project and try "Show In Reverse Dependency Tree" - an exception happens:
> Unable to find a module descriptor associated with D:/workspace/project/ivy.xml
> Error while resolving the ivy instance for ivy.xml in
> 'project':
>   Unrecognized variables in the Ivy settings file ${project_loc}/ivysettings.xml
> Underlying error (org.eclipse.core.runtime.CoreException): Variable
> references empty selection: ${project_loc}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.