ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Gill" <llign...@gmail.com>
Subject Re: platform specific configurations
Date Fri, 26 Oct 2007 01:44:32 GMT
Have a look at the ivy publish task documentation (
http://ant.apache.org/ivy/history/trunk/use/publish.html), you will notice
that it takes a 'conf' attribute to specify the confs to publish.

On 10/26/07, olsin <osinitsin@advisorsoftware.com> wrote:
>
>
> Hi all,
> I'm new to Ivy, seeking advice.
> Part of our project is a native library - x.dll on windows and x.so on
> unix.
> In ivy.xml I've defined configurations and publications as following:
>
> <configurations>
>   <conf name="default"/>
>   <conf name="windows" extends="default" />
>   <conf name="unix" extends="default" />
> </configurations>
> <publications>
>   <artifact name="asi-optimizer" type="jar"/>
>   <artifact name="asi-optimizerlib" type="dll" conf="windows" />
>   <artifact name="liboptimizerlib" type="dll" ext="so" conf="unix" />
> </publications>
>
> How can I publish only jar+dll while building on windows and jar+so while
> building on unix? I don't mind specifying ant target or ivy conf name (no
> need to detect the platform automatically).
>
> (Using Ivy 1.4)
> --
> View this message in context:
> http://www.nabble.com/platform-specific-configurations-tf4693503.html#a13415468
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Regards,
John Gill

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message