--- On Thu, 2/26/09, David Weintraub wrote:
> From: David Weintraub
> Subject: Re: Delete task should be failing for UNC path that does not exist
> To: "Ant Users List"
> Date: Thursday, February 26, 2009, 2:20 PM
> You need to set failonerror="true"
You need to set failonerror="true" to kill the build when the delete
fails. Of course, Ant is depending upon the OS to give it a "proper"
exit value from the delete command. I can't say for certain whether
UNC paths might be cause problems in this respect.
BTW, why are you using UNC anyway. Normal
On Thu, Feb 26, 2009 at 12:57 PM, Dave wrote:
> Going by the first line of this, Ant should fail if the specified file or
> directory does not exist, no?
The manual is right, and my memory is faulty, that's all ;-) I think I
always use quiet="true"... --DD
---
According to the Ant Manual,
In relation to the quiet attribute of the delete task..
"If the specified file or directory does not exist, do not display a
diagnostic message (unless Ant has been invoked with the -verbose or
-debugswitches) or modify the exit status to reflect an error. When
set to
On Thu, Feb 26, 2009 at 12:09 PM, Dave wrote:
> However, I'm still curious as to why delete is silent when the UNC path
> passed to it does not exist?
I think that's true of any dir, not just UNC ones. --DD
-
To unsubscribe, e-m
Hey guys,
I had made a mistake in my test script to see if it failed when trying to
deleted a directory that does exist.
It does indeed fail, likely due to access permissions, as I cannot delete
the file through explorer either.
However, I'm still curious as to why delete is silent when the UNC pat
On Thu, Feb 26, 2009 at 11:28 AM, Dave wrote:
> The following reduced test case shows the problem. I've tested this with Ant
> 1.7.1 and JDK 1.4.2_19
> ===
>
> value="\\my-unc-path-that-does-not-exist\tmp"/>
>
>
> ===
>
> Can anyone help me with th
It doesn't fail when the directory exists or does not exist.
However, when the directory does exist, it is not deleted.
It should either succeed and deleted the directory, or fail if it can't
delete the directory or the directory does not exist.
However, it's succeeding for all cases.
On Thu, Feb
Does it fail when the directory does exist?
Try printing out "out.parent.dir" and see what it is equal to:
Maybe the backslashes are being misinterpreted somehow.
Another possibility has to do with the way UNC paths work. Ant may not
be playing so friendly with them. It could be that Ant is re
The following reduced test case shows the problem. I've tested this with Ant
1.7.1 and JDK 1.4.2_19
===
===
Can anyone help me with this?
--
"A lot of people are afraid of heights. Not me, I'm afraid of widths."
10 matches
Mail list logo