You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Hans Dockter <ma...@dockter.biz> on 2008/01/23 22:15:25 UTC
Publishing ivy files
I have the following requirement. My build tool, which uses ivy under
the hood, does not work with ivy files. It uses Ivy via its API and
thus creates the ModuleDescriptors, DependencyDescriptors, etc ... My
problem is to publish a module via its ModuleDescriptors. The
artifacts are published without any problems. But I want the ivy file
also to be published to the repository. But locally there exists no
ivy file. Only the ModuleDescriptor exists in memory.
Is there a way that Ivy does the ivy file generation on the fly for
publishing? Or do I have to locally generate a temporary ivy file, to
get it published?
- Hans
Re: Publishing ivy files
Posted by Xavier Hanin <xa...@gmail.com>.
You need to provide an Ivy file for Ivy to publish it. But generating the
file on the fly is very easy with the module descriptor, you just have to
use XmlModuleDescriptorWriter.
Xavier
On Jan 23, 2008 10:20 PM, Hans Dockter <ma...@dockter.biz> wrote:
> I would like to add that so far I use for publishing the following
> method of the PublishEngine:
>
> public Collection publish(ModuleDescriptor md, Collection
> srcArtifactPattern,
> DependencyResolver resolver, PublishOptions options)
> throws IOException { ...
>
> - Hans
>
> On Jan 23, 2008, at 10:15 PM, Hans Dockter wrote:
>
> > I have the following requirement. My build tool, which uses ivy
> > under the hood, does not work with ivy files. It uses Ivy via its
> > API and thus creates the ModuleDescriptors, DependencyDescriptors,
> > etc ... My problem is to publish a module via its
> > ModuleDescriptors. The artifacts are published without any
> > problems. But I want the ivy file also to be published to the
> > repository. But locally there exists no ivy file. Only the
> > ModuleDescriptor exists in memory.
> >
> > Is there a way that Ivy does the ivy file generation on the fly for
> > publishing? Or do I have to locally generate a temporary ivy file,
> > to get it published?
> >
> > - Hans
> >
>
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/
Re: Publishing ivy files
Posted by Hans Dockter <ma...@dockter.biz>.
I would like to add that so far I use for publishing the following
method of the PublishEngine:
public Collection publish(ModuleDescriptor md, Collection
srcArtifactPattern,
DependencyResolver resolver, PublishOptions options)
throws IOException { ...
- Hans
On Jan 23, 2008, at 10:15 PM, Hans Dockter wrote:
> I have the following requirement. My build tool, which uses ivy
> under the hood, does not work with ivy files. It uses Ivy via its
> API and thus creates the ModuleDescriptors, DependencyDescriptors,
> etc ... My problem is to publish a module via its
> ModuleDescriptors. The artifacts are published without any
> problems. But I want the ivy file also to be published to the
> repository. But locally there exists no ivy file. Only the
> ModuleDescriptor exists in memory.
>
> Is there a way that Ivy does the ivy file generation on the fly for
> publishing? Or do I have to locally generate a temporary ivy file,
> to get it published?
>
> - Hans
>