How to exclude source and javadoc download

View: New views
4 Messages — Rating Filter:   Alert me  

How to exclude source and javadoc download

by Coolboykl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all

I am using ivy2-RC2, using the hello-ivy as an example, could anyone tell me how to exclude javadoc and source download? below is the ivy.xml

<ivy-module version="2.0">
    <info organisation="org.apache" module="hello-ivy"/>
    <dependencies>
        <dependency org="commons-lang" name="commons-lang" rev="2.0"/>
        <dependency org="commons-cli" name="commons-cli" rev="1.0"/>
    </dependencies>
</ivy-module>

When I run ant resolve, it always download the jar, the source, and the javadoc. Is there anywhere to exclude those?

Cheers

Re: How to exclude source and javadoc download

by Maarten Coene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The sources and javadocs are part of the "sources" and "javadoc" configurations.
If you exclude these in your configurationmapping, they won't be downloaded:

<dependency org="commons-lang" name="commons-lang" rev="2.0" conf="*->*,!sources,!javadoc" />

Maarten




----- Original Message ----
From: Coolboykl <khoo.james@...>
To: ivy-user@...
Sent: Wednesday, December 3, 2008 9:10:36 AM
Subject: How to exclude source and javadoc download


Hi all

I am using ivy2-RC2, using the hello-ivy as an example, could anyone tell me
how to exclude javadoc and source download? below is the ivy.xml

<ivy-module version="2.0">
    <info organisation="org.apache" module="hello-ivy"/>
    <dependencies>
        <dependency org="commons-lang" name="commons-lang" rev="2.0"/>
        <dependency org="commons-cli" name="commons-cli" rev="1.0"/>
    </dependencies>
</ivy-module>

When I run ant resolve, it always download the jar, the source, and the
javadoc. Is there anywhere to exclude those?

Cheers
--
View this message in context: http://www.nabble.com/How-to-exclude-source-and-javadoc-download-tp20808519p20808519.html
Sent from the ivy-user mailing list archive at Nabble.com.


     

Re: How to exclude source and javadoc download

by ataggart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there some way to do this globally?  

We just updated from ivy-2.0.0-beta2 to ivy-2.0.0-rc2 and every one of our builds started failing due to not finding dependent class files.  I did some digging after noticing that Ivy was downloading 'source' and 'javadoc' jars in addition to the binary jars (which, by the way was a huge waste of bandwidth and time), and I can only guess that our ivy:retrieve pattern (/[artifact]-[revision].[ext]) was resulting in each of the 3 jars getting written to the same file name, resulting in the 'javadoc' jar being the only one left.

Defaulting to pulling down all available source and javadoc jars for every dependency in the entire graph may be a useful feature to someone, but it is horrible for us.  For now we've had to revert back to ivy-2.0.0-beta2.


Maarten Coene wrote:
The sources and javadocs are part of the "sources" and "javadoc" configurations.
If you exclude these in your configurationmapping, they won't be downloaded:

<dependency org="commons-lang" name="commons-lang" rev="2.0" conf="*->*,!sources,!javadoc" />

Maarten




----- Original Message ----
From: Coolboykl <khoo.james@gmail.com>
To: ivy-user@ant.apache.org
Sent: Wednesday, December 3, 2008 9:10:36 AM
Subject: How to exclude source and javadoc download


Hi all

I am using ivy2-RC2, using the hello-ivy as an example, could anyone tell me
how to exclude javadoc and source download? below is the ivy.xml

<ivy-module version="2.0">
    <info organisation="org.apache" module="hello-ivy"/>
    <dependencies>
        <dependency org="commons-lang" name="commons-lang" rev="2.0"/>
        <dependency org="commons-cli" name="commons-cli" rev="1.0"/>
    </dependencies>
</ivy-module>

When I run ant resolve, it always download the jar, the source, and the
javadoc. Is there anywhere to exclude those?

Cheers
--
View this message in context: http://www.nabble.com/How-to-exclude-source-and-javadoc-download-tp20808519p20808519.html
Sent from the ivy-user mailing list archive at Nabble.com.


     

Re: How to exclude source and javadoc download

by Claudio Miranda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there any way to globally configure ivy not to download sources and javadocs  ?
Perhaps some configuration to do at ivysettings.xml ?

Thanks

Claudio Miranda

ataggart wrote:
Is there some way to do this globally?