pombreda / ivyidea

Automatically exported from code.google.com/p/ivyidea
0 stars 0 forks source link

cyclic definition in ivy properties causes plugin throw IllegalArgumentException #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create and ivy properties file and associated it to the project
2. add a variable definition to the properties file
3. set the value of the variable to be a reference to itself

What is the expected output? What do you see instead?

ivyde.properties contains cyclical variable definitions, this does not cause 
problems for IVY itself but does make the IntelliJ plugin blow up.

(I know getting rid of the cyclic definition may be considered a good thing, 
but it is not in my control and does not cause command-line ant/ivy to fail.)

What version of the product are you using? On what operating system?
IvyIDEA 1.0.1
IntelliJ 11

cyclic variable definition: cycle = [nwms.yantra.version, nwms.yantra.version]: 
cyclic variable definition: cycle = [nwms.yantra.version, nwms.yantra.version]
java.lang.IllegalArgumentException: cyclic variable definition: cycle = 
[nwms.yantra.version, nwms.yantra.version]
    at org.apache.ivy.core.IvyPatternHelper.substituteVariables(IvyPatternHelper.java:185)
    at org.apache.ivy.core.IvyPatternHelper.substituteVariables(IvyPatternHelper.java:189)
    at org.apache.ivy.core.IvyPatternHelper.substituteVariables(IvyPatternHelper.java:159)
    at org.apache.ivy.core.settings.IvyVariableContainerImpl.substitute(IvyVariableContainerImpl.java:63)
    at org.apache.ivy.core.settings.IvyVariableContainerImpl.setVariable(IvyVariableContainerImpl.java:48)
    at org.apache.ivy.core.settings.IvySettings.setVariable(IvySettings.java:576)
    at org.apache.ivy.core.settings.IvySettings.setVariable(IvySettings.java:572)
    at org.clarent.ivyidea.config.IvyIdeaConfigHelper.fillSettingsVariablesWithProperties(Unknown Source)
    at org.clarent.ivyidea.config.IvyIdeaConfigHelper.injectProperties(Unknown Source)
    at org.clarent.ivyidea.config.IvyIdeaConfigHelper.injectProperties(Unknown Source)
    at org.clarent.ivyidea.config.IvyIdeaConfigHelper.createConfiguredIvySettings(Unknown Source)
    at org.clarent.ivyidea.config.IvyIdeaConfigHelper.createConfiguredIvySettings(Unknown Source)
    at org.clarent.ivyidea.ivy.IvyManager.getIvy(Unknown Source)
    at org.clarent.ivyidea.resolve.DependencyResolver.resolve(Unknown Source)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver$1.run(Unknown Source)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:860)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver.resolve(Unknown Source)
    at org.clarent.ivyidea.ResolveForActiveModuleAction$1.doResolve(Unknown Source)
    at org.clarent.ivyidea.intellij.task.IvyIdeaResolveBackgroundTask.run(Unknown Source)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:469)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:218)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:378)
    at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)

Original issue reported on code.google.com by krs...@gmail.com on 2 Apr 2012 at 3:54

GoogleCodeExporter commented 9 years ago
Could you attach an example of your ivysetting.xml and your properties file?

Original comment by maarten....@gmail.com on 16 Apr 2012 at 9:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r246.

Original comment by maarten....@gmail.com on 24 Apr 2012 at 9:48