ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <>
Subject Re: Artifact question
Date Tue, 18 Dec 2007 13:09:20 GMT
Not sure if the problem is solved, so here is what I'd do:
<artifact path="org.apache.ant_1.7.0.v200706080842\about_files"
name="NOTICE" ext="" type="notice" conf="VJR"/>
And use a pattern like this:

If you use the type in your pattern, then you may want to use a different
type, maybe empty. What is important is to use the parenthesis to tell Ivy
that if a token is empty (here ext), the static text in the parenthesis
(here the dot before ext) should be ommitted too.


On Dec 13, 2007 10:00 PM, Jim Adams <> wrote:

> How do you specify an artifact that has no file extension? For instance ,
> I want to place a file in the repo called NOTICE (a rather common thing to
> do).  I could do something like this:
> <artifact type="" path="org.apache.ant_1.7.0.v200706080842\about_files"
> name="NOTICE" conf="VJR"/>
> Or
> <artifact ext="" path="org.apache.ant_1.7.0.v200706080842\about_files"
> name="NOTICE" conf="VJR"/>
> But the default extension is jar. I am not sure how to say none.
> Jim Adams
> Principal Systems Developer
> SAS Institute

Xavier Hanin - Independent Java Consultant

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