ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: publish an artifcat without extension
Date Wed, 05 Dec 2007 02:36:05 GMT
You should tell Ivy that your artifact has no extension:
<publications>
       <artifact name="test" ext="" conf="${module.configuration}" />
</publications>

Then you should use a pattern where the dot before extension is made
optional:
<filesystem name="local">
       <ivy pattern = "${xxx.ivy.resolver.local.ivy
>
> .pattern}"/>
>                        <artifact pattern =
> "${ivy.local.repos}/[...]/[artifact](.[ext])"/>
> </filesystem>
>

And you should provide the same kind of pattern with parenthesis to mark the
dot as optional in your publish pattern that Ivy will use to locate your
artifact for its publication.

If you still have problem make sure to post your logs and your new settings
and relevant snippets.

Xavier

On Dec 4, 2007 6:59 PM, Fink, Annette (Fa.Hays) <finka@media-saturn.com>
wrote:

> Hello together,
>
> does anyone know if it is possible to publish an artifact without
> extension?
>
> My current configurations (ivy is still searching for test.jar, but
> according to my needs it shouldn't. Ivy should publish "test" without
> extension ;) ):
>
> <publications>
>        <artifact name="test" conf="${module.configuration}" />
> </publications>
>
> where "test" has no extension.
>
> My ivyconf-file.properties contains the following entry:
>
> xxx.ivy.resolver.local.artifact.pattern=${ivy.local.repos}/[...]/[artifa
> ct].[ext]
> xxx.ivy.resolver.local.artifact.withoutext.pattern=${ivy.local.repos}/[.
> ..]/[artifact]
>
> My ivyconf.xml contains the following entry:
>
> <filesystem name="local">
>        <ivy pattern = "${xxx.ivy.resolver.local.ivy.pattern}"/>
>                        <artifact pattern =
> "${xxx.ivy.resolver.local.artifact.pattern}"/>
>                        <artifact pattern =
> "${xxx.ivy.resolver.local.artifact.withoutext.pattern}"/>
> </filesystem>
>
>
> Thank you in advance for your help!
> Greetings
> Annette
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

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