ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: Delete task should be failing for UNC path that does not exist
Date Thu, 26 Feb 2009 18:02:54 GMT
On Thu, Feb 26, 2009 at 11:28 AM, Dave <davidcorley@gmail.com> wrote:
> The following reduced test case shows the problem. I've tested this with Ant
> 1.7.1 and JDK 1.4.2_19
> =======================
> <project name="delete-UNC-test">
>    <property name="out.parent.dir"
> value="\\my-unc-path-that-does-not-exist\tmp"/>
>    <delete dir="${out.parent.dir}" verbose="true"/>
> </project>
> =======================
>
> Can anyone help me with this?

UNC paths are so troublesome...

You could try with <property location=""> instead of using the value attribute.
If that doesn't work, you could force the script user(s) to map it to
a drive letter.
If that doesn't work, resort to <exec> using the DOS "cmd" shell as
executable and using a DOS command to delete the dir (if you use
absolute UNC paths, you're likely Windows only, no? If not, the os
attribute of Exec can restrict the <exec> for a specific OS like
windows).

--DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message