ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Gill" <>
Subject Retrieving artifacts with no type
Date Wed, 03 Oct 2007 08:20:02 GMT
I have a legacy repository that I have defined as an ivy repository, and it
all works really well except for a few dependencies that have no type
information in their structure.

So my issue was how can I retrieve artifacts from a repository that
optionally have type information?

NOTE: I am using ivy 1.4.1

For example, I have a repository like this:


Here is part of my ivy settings:

<filesystem name="repo">
    <ivy pattern="${env.REPO}/[module]/[revision]/ivy/ivy.xml"/>
    <artifact pattern="${env.REPO
    <artifact pattern="${env.REPO

So what I did was add another artifact pattern (last in the list) to the
above without a [type] entry like so:

    <artifact pattern="${env.REPO

However this didn't quite work as when I listed the dependencies, it seemed
I still needed to specify a type in my ivy.xml. So what I did was add a
blank type like this:

<dependency name="badpackage" rev="3.00.42" conf="win32->default">
            <artifact name="IzPack-installer" type="" ext="jar"/>

The above works, but was this just luck, or is ivy meant to support typeless
repositories? In addition, will it support this in the future, or if I move
to ivy 2.0?

If it should be a feature then it would be nice if I didn't have to specify
a type at all.

NOTE: I think it is you should specify a type in your repository as a rule!
This is purely to support legacy releases that don't specify a type.

John Gill

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message