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 "Fink, Annette (Fa.Hays)" <fi...@media-saturn.com> on 2007/12/04 18:59:14 UTC

publish an artifcat without extension

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


Re: publish an artifcat without extension

Posted by Xavier Hanin <xa...@gmail.com>.
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) <fi...@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/