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 crashmeister <na...@3dpilots.com> on 2009/01/16 17:12:42 UTC
Blocking an extended configuration
I have 'compile' and 'runtime' confs. Runtime extends Compile.
Under certain circumstances, I want to use an artifact for compilation, but
NOT for runtime.
Is there any way to block the 'runtime' conf for a dependency ?
I tried this but it did not work:
<dependencies>
...
<dependency
org="oracle"
name="oraclexsql"
rev="${oracle.oraclexsql.version}"
conf="compile->*"
transitive="true"/>
<exclude org="oracle" conf="runtime"/>
</dependencies>
--
View this message in context: http://www.nabble.com/Blocking-an-extended-configuration-tp21502769p21502769.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Blocking an extended configuration
Posted by Archie Cobbs <ar...@gmail.com>.
The <exclude> tag should work too (not sure why it's not)... it's just a
little bit more "hacky".
-Archie
On Fri, Jan 16, 2009 at 10:52 AM, crashmeister <na...@3dpilots.com>wrote:
> Mmm, OK. New user here - I was just using the default that came with IVY.
>
> I'll try the mods, but it would still be nice to have an exception process.
>
--
Archie L. Cobbs
Re: Blocking an extended configuration
Posted by crashmeister <na...@3dpilots.com>.
Mmm, OK. New user here - I was just using the default that came with IVY.
I'll try the mods, but it would still be nice to have an exception process.
Archie Cobbs-3 wrote:
>
> Perhaps this issue is evidence that the "runtime" configuration should not
> be extending the "compile" configuration... you may want to refine your
> configurations.
>
> -Archie
>
> On Fri, Jan 16, 2009 at 10:12 AM, crashmeister
> <na...@3dpilots.com>wrote:
>
>>
>> I have 'compile' and 'runtime' confs. Runtime extends Compile.
>>
>> Under certain circumstances, I want to use an artifact for compilation,
>> but
>> NOT for runtime.
>>
>> Is there any way to block the 'runtime' conf for a dependency ?
>>
>> I tried this but it did not work:
>>
>> <dependencies>
>> ...
>> <dependency
>> org="oracle"
>> name="oraclexsql"
>> rev="${oracle.oraclexsql.version}"
>> conf="compile->*"
>> transitive="true"/>
>>
>> <exclude org="oracle" conf="runtime"/>
>>
>> </dependencies>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Blocking-an-extended-configuration-tp21502769p21502769.html
>> Sent from the ivy-user mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Archie L. Cobbs
>
>
--
View this message in context: http://www.nabble.com/Blocking-an-extended-configuration-tp21502769p21503615.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: Blocking an extended configuration
Posted by Archie Cobbs <ar...@gmail.com>.
Perhaps this issue is evidence that the "runtime" configuration should not
be extending the "compile" configuration... you may want to refine your
configurations.
-Archie
On Fri, Jan 16, 2009 at 10:12 AM, crashmeister <na...@3dpilots.com>wrote:
>
> I have 'compile' and 'runtime' confs. Runtime extends Compile.
>
> Under certain circumstances, I want to use an artifact for compilation, but
> NOT for runtime.
>
> Is there any way to block the 'runtime' conf for a dependency ?
>
> I tried this but it did not work:
>
> <dependencies>
> ...
> <dependency
> org="oracle"
> name="oraclexsql"
> rev="${oracle.oraclexsql.version}"
> conf="compile->*"
> transitive="true"/>
>
> <exclude org="oracle" conf="runtime"/>
>
> </dependencies>
>
> --
> View this message in context:
> http://www.nabble.com/Blocking-an-extended-configuration-tp21502769p21502769.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>
--
Archie L. Cobbs