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 pa...@targetgroup.net on 2008/07/30 11:18:21 UTC

Stopping src jar downloads for dependent jars down the tree




I have a dependency on OpenId which way down the line has a dependency on
the entry below

<dependency org="org.bouncycastle" name=
"com.springsource.org.bouncycastle.jce" rev="1.39.0"  />

This contains a source jar:

<publications>
      <artifact name="com.springsource.org.bouncycastle.jce"/>
      <artifact name="com.springsource.org.bouncycastle.jce-sources"
type="src" ext="jar"/>
      <artifact name="license" type="license" ext="txt"/>
</publications>

Is there any way I can stop the source jar being downloaded when Ivy does a
resolve/retrieve ?



Target
www.targetgroup.net
 
Target is a trading name of Target Group Limited, 
registered in England and Wales No. 1208137
Registered office:  Target House, Cowbridge Road East, Cardiff CF11 9AU

**********************************************************************
DISCLAIMER.
This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL. 
If you are not the intended recipient you must not copy, 
distribute or take any action or reliance upon it. 
The content of this message may also contain personal 
views of an employee of this company and does
not necessarily represent the view of the company.
**********************************************************************
This message has been scanned by Norton Anti-Virus. 
It has also been scanned by MAILsweeper to enforce our e-mail 
policy. If you have any concerns or comments about the content 
of this message, please  e-mail support@targetgroup.net.
**********************************************************************


_____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com

Re: Stopping src jar downloads for dependent jars down the tree

Posted by Xavier Hanin <xa...@gmail.com>.
On Wed, Jul 30, 2008 at 11:18 AM, <pa...@targetgroup.net> wrote:

>
>
>
>
> I have a dependency on OpenId which way down the line has a dependency on
> the entry below
>
> <dependency org="org.bouncycastle" name=
> "com.springsource.org.bouncycastle.jce" rev="1.39.0"  />
>
> This contains a source jar:
>
> <publications>
>      <artifact name="com.springsource.org.bouncycastle.jce"/>
>      <artifact name="com.springsource.org.bouncycastle.jce-sources"
> type="src" ext="jar"/>
>      <artifact name="license" type="license" ext="txt"/>
> </publications>
>
> Is there any way I can stop the source jar being downloaded when Ivy does a
> resolve/retrieve ?

You can use exclude when you declare the dependency on OpenId:
<dependency org="..." name="OpenId" rev="..." conf="...">
  <exclude name="com.springsource.org.bouncycastle.jce-sources" type="src"
/>
</dependency>

Xavier

>
>
>
>
> Target
> www.targetgroup.net
>
> Target is a trading name of Target Group Limited,
> registered in England and Wales No. 1208137
> Registered office:  Target House, Cowbridge Road East, Cardiff CF11 9AU
>
> **********************************************************************
> DISCLAIMER.
> This message is intended only for the use of the Addressee and may
> contain information that is PRIVILEGED and CONFIDENTIAL.
> If you are not the intended recipient you must not copy,
> distribute or take any action or reliance upon it.
> The content of this message may also contain personal
> views of an employee of this company and does
> not necessarily represent the view of the company.
> **********************************************************************
> This message has been scanned by Norton Anti-Virus.
> It has also been scanned by MAILsweeper to enforce our e-mail
> policy. If you have any concerns or comments about the content
> of this message, please  e-mail support@targetgroup.net.
> **********************************************************************
>
>
> _____________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
>



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

Re: Stopping src jar downloads for dependent jars down the tree

Posted by Gilles Scokart <gs...@gmail.com>.
You may also try to specify the type attribute in your retreive task.



2008/7/30  <pa...@targetgroup.net>:
>
>
>
>
> I have a dependency on OpenId which way down the line has a dependency on
> the entry below
>
> <dependency org="org.bouncycastle" name=
> "com.springsource.org.bouncycastle.jce" rev="1.39.0"  />
>
> This contains a source jar:
>
> <publications>
>      <artifact name="com.springsource.org.bouncycastle.jce"/>
>      <artifact name="com.springsource.org.bouncycastle.jce-sources"
> type="src" ext="jar"/>
>      <artifact name="license" type="license" ext="txt"/>
> </publications>
>
> Is there any way I can stop the source jar being downloaded when Ivy does a
> resolve/retrieve ?
>
>
>
> Target
> www.targetgroup.net
>
> Target is a trading name of Target Group Limited,
> registered in England and Wales No. 1208137
> Registered office:  Target House, Cowbridge Road East, Cardiff CF11 9AU
>
> **********************************************************************
> DISCLAIMER.
> This message is intended only for the use of the Addressee and may
> contain information that is PRIVILEGED and CONFIDENTIAL.
> If you are not the intended recipient you must not copy,
> distribute or take any action or reliance upon it.
> The content of this message may also contain personal
> views of an employee of this company and does
> not necessarily represent the view of the company.
> **********************************************************************
> This message has been scanned by Norton Anti-Virus.
> It has also been scanned by MAILsweeper to enforce our e-mail
> policy. If you have any concerns or comments about the content
> of this message, please  e-mail support@targetgroup.net.
> **********************************************************************
>
>
> _____________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
>



-- 
Gilles Scokart