Ant 复制任务:由于 java.io.FileNotFoundException 无法复制 [英] Ant Copy Task: Failed to copy due to java.io.FileNotFoundException

查看:38
本文介绍了Ant 复制任务:由于 java.io.FileNotFoundException 无法复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ant 中编译一个 Flex 应用程序(这里没有问题,我可以做得很好).当我尝试将项目的内容发布到 Windows 网络驱动器(在我的系统上称为Z:\")时,我收到 Java/Ant 抛出的以下 LAME 异常:

I'm trying to compile a Flex application in Ant (no problems here, I can do it fine). When I try to publish the contents of the project to a Windows network drive (known as "Z:\" on my system), I get the following LAME exception thrown by Java/Ant:

BUILD FAILED
C:\workspace\bkeller\build.xml:42: Failed to copy C:\workspace\bkeller\web\assets\text\biography.html to Z:\web\bkeller\assets\text\biography.html due to java.io.FileNotFoundException Z:\web\bkeller\assets\text\biography.html (The system cannot find the file specified)

哪一种糟透了.我找不到任何方法来摆脱这个问题,这对我的项目来说非常重要.我确定我对网络驱动器具有读/写/执行权限,我可以通过 Windows 资源管理器在驱动器上创建/编辑/删除文件.

Which kind of sucks. I can't find any way to get rid of this problem and it's pretty crucial to my project that I get this working. I know for sure that I have read/write/execute permissions on the network drive, I can create/edit/delete files on the drive just fine through Windows explorer.

Drive Z 是 virtualbox 的网络挂载,允许我访问我的主机操作系统 Ubuntu.我已经仔细检查过它是否具有写入权限.有任何想法吗?

Drive Z is a network mount to virtualbox, allowing me to get access to my host OS, Ubuntu. I've double checked that it has write permissions. Any ideas?

推荐答案

VirtualBox 的共享文件夹系统存在问题.它在 3.0.X 之前的几个版本中被修复.

It was a problem in VirtualBox's shared folder system. It was fixed a few releases ago by 3.0.X.

这篇关于Ant 复制任务:由于 java.io.FileNotFoundException 无法复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆