Ant Copy Task: Failed to copy due to java.io.FileNotFoundException

后端 未结 5 562
醉梦人生
醉梦人生 2021-01-20 15:29

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

5条回答
  •  攒了一身酷
    2021-01-20 16:09

    Seeing as how Z is a network mount, verifying that it works (e.g. that you can create / write files) through Windows Explorer may not be the same thing as verifying that it works from within Ant:

    1. You may have specified the necessary user / password sometime in the past and Explorer remembered it (so it doesn't ask you again). Ant obviously wouldn't.
    2. Ant may run as a different user, especially if you spawn another process inside the build.

    Can you write a simple test in java and see if it can create a file on your Z: drive? Perhaps that'll provide some insight. You can also run ant with -debug switch and see if it provides a more detailed info. At the very least it would print a stack trace and you can download Ant source and see what's happening.

提交回复
热议问题