[ 
https://issues.apache.org/jira/browse/IVY-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xavier Hanin resolved IVY-677.
------------------------------

    Resolution: Fixed

I've tried to reproduce this bug on my ubuntu box without success:
{code}
[EMAIL PROTECTED]:~/tmp/ivy/test-local$ ant -quiet publish

BUILD FAILED
/home/xavier/tmp/ivy/test-local/build.xml:10: impossible to publish artifacts 
for test#test-local;[EMAIL PROTECTED]: java.io.IOException: file copy not done 
from /home/xavier/tmp/ivy/test-local/distrib/ivys/ivy-20080822174447.xml to 
/home/xavier/tmp/ivy/test-local/local/test-local/ivy.xml: destination already 
exists and overwrite is false

Total time: 1 second
[EMAIL PROTECTED]:~/tmp/ivy/test-local$ echo $?
1
{code}

I've done this test with a build from svn trunk made last july. So I guess we 
can consider this problem as fixed. Feel free to reopen if you still have the 
same problem with trunk version.

> ivy:publish ignores error when ant runs with "-quiet"
> -----------------------------------------------------
>
>                 Key: IVY-677
>                 URL: https://issues.apache.org/jira/browse/IVY-677
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1
>         Environment: Linux, JDK 1.4.2
>            Reporter: Henning Schmiedehausen
>             Fix For: 2.0-RC1
>
>
> I deploy artifacts into a repository using <ivy:publish ... overwrite="false".
> When running a regular build using "ant" and I have already deployed an 
> artifact, it reports correctly
> [ivy:publish] publish aborted: deleted /home/henning/....
> BUILD FAILED
> ... impossible to publish artifacts for myorg#mymodule;version: 
> java.io.IOException: file copy not done from xxx to yyy: destination probably 
> exists and overwrite is false.
> and echo $? (return code from ant) is 1.
> When I run "ant -quiet":
> BUILD SUCCESSFUL
> and echo $? returns 0.
> Looks bad to me. If my build is not able to publish an artifact because I 
> disallowed overwrite, this IMHO is a build failure and should not be ignored 
> when running quiet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to