If the 'something' is a module for which you have an ivy file, then the
source and javadoc artifacts should be declared in the publication section,
probably in a source and javadoc configuration. Then all you need is depend
on these configurations.

If the something is a maven 2 module, you can use latest IvyDE version
(built from source), or check IvyDE code to write your own small program, or
write an ivy file for the module to get them, or open an issue to ask Ivy to
deal with it out of the box, with the constraints I explained in my last
e-mail. That's a lot of options :-) All depends on your exact environment
and requirements.

HTH,

Xavier

On 5/17/07, Norris Shelton <[EMAIL PROTECTED]> wrote:

How would I go about downloading sources or javadoc for something that has
them?


----- Original Message ----
From: Xavier Hanin <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, May 16, 2007 9:41:54 AM
Subject: Re: Downloading javadoc and source

On 5/16/07, Norris Shelton <[EMAIL PROTECTED]> wrote:

> Is there any plan to allow IVY to download the source and javadoc for
> dependencies like Maven does?


It depends on what you mean by 'allow'. Ivy is able to download the
artifacts you want, all you have to do is declare them. The problem is
with
maven 2 pom, we don't have the meta information about if a source and
javadoc artifact is present or not, so we assume they are not, otherwise
Ivy
would complain about a missing artifact. OTOH in latest IvyDE we have
automatic download and attachment of javadoc and sources for maven
dependencies. It's not too diffiult to ask Ivy to download artifacts you
want using the Ivy API. If we want something in the core without being too
m2 specific, we would have to introduce something like an optional
artifact:
an artifact declared in a module descriptor (the memory representation of
poms and ivy files once parsed by Ivy) so that Ivy would try to download
it,
but not complain if it doesn't exist.

But it really depend on what you actually need.

HTH,

Xavier

Norris Shelton
> Software Engineer
> Sun Certified Java 1.1 Programmer
> Shelton Consulting, LLC
> ICQ# 26487421
> AIM NorrisEShelton
> YIM norrisshelton
>
>
>
>
>
>
>
____________________________________________________________________________________Get
> the Yahoo! toolbar and be alerted to new email wherever you're surfing.
> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php




--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/








____________________________________________________________________________________Got
a little couch potato?
Check out fun summer activities for kids.

http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz




--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

Reply via email to