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 Jim Adams <Ji...@sas.com> on 2007/12/13 22:00:55 UTC

Artifact question

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
Jim.Adams@sas.com
Principal Systems Developer
SAS Institute



Re: Artifact question

Posted by John Gill <ll...@gmail.com>.
Try type="" as well.

On Dec 14, 2007 6:00 AM, Jim Adams <Ji...@sas.com> 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
> Jim.Adams@sas.com
> Principal Systems Developer
> SAS Institute
>
>
>


-- 
Regards,
John Gill

RE: Artifact question

Posted by Jim Adams <Ji...@sas.com>.
Thanks. That is pretty much what I did.

> -----Original Message-----
> From: Xavier Hanin [mailto:xavier.hanin@gmail.com]
> Sent: Tuesday, December 18, 2007 8:09 AM
> To: ivy-user@incubator.apache.org
> Subject: Re: Artifact question
>
> 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:
> whatever/[path]/[artifact](.[ext])
>
> 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.
>
> Xavier
>
> On Dec 13, 2007 10:00 PM, Jim Adams <Ji...@sas.com> 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
> > Jim.Adams@sas.com
> > Principal Systems Developer
> > SAS Institute
> >
> >
> >
>
>
> --
> Xavier Hanin - Independent Java Consultant
> http://xhab.blogspot.com/
> http://ant.apache.org/ivy/
> http://www.xoocode.org/

Re: Artifact question

Posted by Xavier Hanin <xa...@gmail.com>.
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:
whatever/[path]/[artifact](.[ext])

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.

Xavier

On Dec 13, 2007 10:00 PM, Jim Adams <Ji...@sas.com> 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
> Jim.Adams@sas.com
> Principal Systems Developer
> SAS Institute
>
>
>


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