Hello Shay,
yes, ivy can be used programmatically. I think nearly all classes have
public interfaces.
here a snippet of a piece of code written on my project using ivy 2.1.x
APIs (not sure if there is any change in 2.2.x)
import org.apache.ivy.Ivy;
import org.apache.ivy.Ivy.IvyCallback;
import org.apache.ivy.core.IvyContext;
import org.apache.ivy.core.module.descriptor.DependencyDescriptor;
import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
import org.apache.ivy.core.module.id.ModuleRevisionId;
import org.apache.ivy.core.resolve.ResolvedModuleRevision;
import org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistry;
....
Ivy ivy = new Ivy();
configureIvy(ivy);
// using the ivycallback system
MyModuleDescriptor myModuleDescriptor = new MyModuleDescriptor();
ModuleDescriptor md = myModuleDescriptor.parse(ivyFile, ivy);
AFAIK the class org.apache.ivy.Ivy has most of the methods that you need.
Hopes this helps,
Antoine
On 10/8/2010 8:09 AM, shay te wrote:
> hey all.
>
> i am writing an java application based on plug-ins ,
> i wish to use IVY ,to help me with dependencies issue when installing a
> plug-in at run time
>
> each plug-in should have some jar's he depends on ,
> i need IVY to help me with what jar i can keep and what jar are not
> necessary
>
> i am new to IVY ,and i notice only XML configuration tutorial
>
>
> am i at the right direction?
> can IVY help me completing my task?
>
> thank you
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|