ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliffano Subagio <cliff...@gmail.com>
Subject does ivy:install default type/ext to jar?
Date Thu, 09 Jul 2009 01:05:21 GMT
Hi,

I'm currently using ivy 2.0.0 .

I have several zip files that I want to store in my Ivy repo, so I used
ivy:install
<ivy:install organisation="com.foo" module="abc" revision="0.3"
from="localfilesystem" to="fooivy" transitive="false" overwrite="true"/>

I notice that the file end up as jar in the repo
    [ivy:install] :: installing com.foo#abc;0.0.3 ::
    [ivy:install] :: resolving dependencies ::
    [ivy:install]   found com.foo#abc;0.0.3 in localfilesystem
    [ivy:install] :: downloading artifacts to cache ::
    [ivy:install] downloading D:\dev\foo\dummy\abc-0.0.3.zip ...
    [ivy:install] ......... (478kB)
    [ivy:install]   [SUCCESSFUL ] com.foo#abc;0.0.3abc.jar (593ms)
    [ivy:install] :: installing in fooivy ::
    [ivy:install]   published abc to
ivy-rep/ivy2/com/foo/abc/0.0.3/abc-0.0.3.jar
    [ivy:install]   published ivy to ivy-rep/ivy2/com/foo/abc/0.0.3/ivy.xml
    [ivy:install] :: install resolution report ::
    [ivy:install] :: resolution report :: resolve 0ms :: artifacts dl 593ms

Anyone know why ivy:install ignores the file type?

Here are the resolvers:
        <resolvers>
            <sftp name="fooivy" host="repo.foo.com" user="bar"
userPassword="bar" m2compatible="true">
                <ivy
pattern="ivy-rep/ivy2/[organisation]/[module]/[revision]/ivy.xml" />
                <artifact
pattern="ivy-rep/ivy2/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
            </sftp>
            <filesystem m2compatible="true" name="localfilesystem">
                 <artifact
pattern="${basedir}/dummy/[artifact]-[revision].[ext]"/>
            </filesystem>
        </resolvers>

I also tried adding the type="zip"

<ivy:install organisation="com.foo" module="abc" revision="0.3"
from="localfilesystem" to="fooivy" transitive="false" overwrite="true"
type="zip"/>

but this only installs the ivy.xml file and not the zip file

[ivy:install] :: installing com.foo#abc;0.0.3 ::
[ivy:install] :: resolving dependencies ::
[ivy:install]   found com.foo#abc;0.0.3 in localfilesystem
[ivy:install] :: downloading artifacts to cache ::
[ivy:install] :: installing in fooivy ::
[ivy:install]   published ivy to ivy-rep/ivy2/com/foo/abc/0.0.3/ivy.xml
[ivy:install] :: install resolution report ::
[ivy:install] :: resolution report :: resolve 0ms :: artifacts dl 0ms

Any suggestion on how I can get ivy:install to honour the original file
type/ext?

Thanks in advance,
Cliff

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