ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shacoshe <shay...@gmail.com>
Subject Re: Using IVY programatically
Date Mon, 25 Oct 2010 18:09:07 GMT

it was weird that i am passing to 
"PomModuleDescriptorParser.getInstance().parseDescriptor"  a new IVYSettings 
so i passed the instance i created before , 
cause in the logger i see that ,ivy is trying to use file inside IVY jar 

:: loading settings :: url =
jar:file:/D:/programming/eclipse_projects/ivyTest/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml

here is my exception:
java.lang.IllegalArgumentException: optional part hasn't been closed in
pattern [module]/[revision]/[module]-[revision](-[classifier]
	at
org.apache.ivy.core.IvyPatternHelper.substituteTokens(IvyPatternHelper.java:306)
	at
org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:150)
	at
org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:99)
	at
org.apache.ivy.core.IvyPatternHelper.substitute(IvyPatternHelper.java:86)
	at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getArchivePathInCache(DefaultRepositoryCacheManager.java:384)
	at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getArchiveFileInCache(DefaultRepositoryCacheManager.java:349)
	at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.lockMetadataArtifact(DefaultRepositoryCacheManager.java:1077)
	at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getSavedArtifactOrigin(DefaultRepositoryCacheManager.java:460)
	at
org.apache.ivy.plugins.resolver.BasicResolver.locate(BasicResolver.java:783)




-----------------


also before(using new IvySettings()) the resolve did not throw any exception 
but the retrive did throw same exception


thank you 

-- 
View this message in context: http://ant.1045680.n5.nabble.com/Using-IVY-programatically-tp3204508p3235878.html
Sent from the Ant - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message