ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: deliver overwriting the source ivy.xml
Date Tue, 30 Apr 2013 09:05:46 GMT
Hi Jason,

thanks for your reply. These options are basically what I meant with 
"making a copy to a temporary

That's the only odd thing I encountered with ivy. Everything else is great 
and works as expected,
but overwriting the source ivy file by default is really strange.


From:   Jason R-J <>
Date:   30.04.2013 10:50
Subject:        Re: deliver overwriting the source ivy.xml

On 29/04/2013 17:10, wrote:
> Hi,
> Is there a way to prevent the <deliver> (<publish>) task from 
> the source ivy.xml file?
> I have a bunch of project directories like this
> projectx
>    - src
>    - dist
>    - ivy.xml
> Now when I publish these projects, the original ivy.xml is being
> overwritten with the resolved version:
> [ivy:publish]   delivering ivy file to
> /home/carsten/projects/projectx/ivy.xml
> How can I keep my original version untouched and let Ivy deliver 
> else? Or do I have to copy the ivy.xml
> to a temporary location (i.e. dist directory) and let it deliver/publish
> from there?
> Thanks
> Carsten

I think you have two options:
1) Do an explicit <deliver> and give <publish> the srcivypattern to find 
the delivered/resolved Ivy file.

         <!-- ship a copy of our resolved file -->
         <ivy:deliver deliverpattern="${distDir}/ivy.xml" 
pubrevision="${buildVersionNo}" pubbranch="${BranchName}" 

2) According to the documentation[1] provide <publish> with a 
srcivypattern and it will use that for that for the implicit deliver - 
assuming you've already called <resolve> prior to that.


Hope that helps.


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