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 Wed, 20 Oct 2010 19:39:00 GMT

ok , i made a little test ,
i came to some errors , And i dont know how to define my "archiva"
repository 
can u help me 

this what i have so far : 

IvySettings settings = new IvySettings();
      
settings.setDefaultIvyUserDir(new
File("D:/programming/eclipse_projects/ivyTest/repo/"));

settings.setDefaultCache(new
File("D:/programming/eclipse_projects/ivyTest/repo/cache/"));
settings.setDefaultCacheArtifactPattern("[module]/[revision]/[module]-[revision](-[classifier]");
      
Ivy ivy = Ivy.newInstance(settings);
      
ivy.getLoggerEngine().pushLogger(new
DefaultMessageLogger(Message.MSG_VERBOSE));

ModuleDescriptor md = 
PomModuleDescriptorParser.getInstance().parseDescriptor(new IvySettings(),
new File("src/test.pom").toURL(), true);
      
RetrieveOptions retriveOptions = new RetrieveOptions();
retriveOptions.setUseOrigin(true);
retriveOptions.setConfs(md.getConfigurationsNames());
ivy.retrieve(md.getModuleRevisionId(), "lib/[conf]/[artifact].[ext]",
retriveOptions);
-- 
View this message in context: http://ant.1045680.n5.nabble.com/Using-IVY-programatically-tp3204508p3229246.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