yogendra / ivyidea

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

ParseException when using variables for revision numbers in ivy.xml #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We have a properties file which contains the version of the libraries we 
are using 
e.g. 
spring.version=3.0.0.RELEASE

This properties file is loaded in the ivysettings.xml file.
Then in the ivy.xml files for each module we can have dependencies defined 
as 
<dependency org="org.springframework" name="spring-core" 
rev="${spring.version}" conf="ide->default;jar->default">

when we attempt to resolve the dependencies for IntelliJ a ParseException 
is generated-

java.text.ParseException: [[Fatal Error] ivy.xml:17:61: Open quote is 
expected for attribute "rev" associated with an  element type  
"dependency". in file <the filename>
    at org.clarent.ivyidea.ivy.IvyUtil.parseIvyFile(IvyUtil.java:84)
    at org.clarent.ivyidea.ivy.IvyUtil.getIvyModuleDescriptor
(IvyUtil.java:50)
    at 
org.clarent.ivyidea.resolve.IntellijModuleDependencies.getModuleId
(IntellijModuleDependencies.java:87)
    at 
org.clarent.ivyidea.resolve.IntellijModuleDependencies.fillModuleDependencies
(IntellijModuleDependencies.java:71)
    at org.clarent.ivyidea.resolve.IntellijModuleDependencies.<init>
(IntellijModuleDependencies.java:51)
    at org.clarent.ivyidea.resolve.DependencyResolver.resolve
(DependencyResolver.java:78)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver$1.run
(IntellijDependencyResolver.java:60)
    at 
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction
(ApplicationImpl.java:160)
    at org.clarent.ivyidea.resolve.IntellijDependencyResolver.resolve
(IntellijDependencyResolver.java:56)
    at org.clarent.ivyidea.ResolveForActiveModuleAction$1.doResolve
(ResolveForActiveModuleAction.java:55)
    at 
org.clarent.ivyidea.intellij.task.IvyIdeaResolveBackgroundTask.run
(IvyIdeaResolveBackgroundTask.java:70)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run
(ProgressManagerImpl.java:3)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run
(ProgressManagerImpl.java:6)
    at 
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgre
ss
(ProgressManagerImpl.java:3)
    at 
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess
(ProgressManagerImpl.java:72)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run
(ProgressManagerImpl.java:11)
    at com.intellij.openapi.application.impl.ApplicationImpl$5.run
(ApplicationImpl.java:1)
    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:619)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run
(ApplicationImpl.java:7)

What version of the product are you using? On what operating system?
Using intelliJ 7.0.5 and I have tried IvyIdea 0.8 and 0.9beta2 running on 
Windows XP SP2

Original issue reported on code.google.com by warrendu...@gmail.com on 27 Jan 2010 at 12:28

GoogleCodeExporter commented 9 years ago
Sorry - discovered that it was caused by an error in the another ivy.xml file. 
It 
appears IvyIdea parses the ivy.xml for all modules, even when you only want to 
resolve the dependencies for one module. 

Original comment by warrendu...@gmail.com on 27 Jan 2010 at 1:01

GoogleCodeExporter commented 9 years ago
closing as invalid because it wasn't a problem of ivyidea.

Original comment by maarten....@gmail.com on 12 Aug 2011 at 9:12