0
我想使用ANT將文件從本地機器移動到映射驅動器。我使用net use命令使用ANT將文件從本地目錄複製到映射驅動器
- // IP地址/ C $/ShareFolder
- NET USE Z ^使用映射我的Z驅動到以下位置:/持久:是// IP地址/ C $/ShareFolder
我第一次試圖讓Z驅動器是我的todir。
<copy todir="Z:/Results/">
<fileset dir="${LocalResults}">
<include name="**/*"/>
</fileset>
</copy>
下面是從詹金斯
[copy] Copying 16 files to Z:\Results
Attempt to copy C:\Program Files\results\index.html to Z:\Results\index.html using NIO Channels failed due to 'failed to create the parent directory for Z:\Results\index.html'. Falling back to streams.
BUILD FAILED
C:\Deploy\copyResults.xml:69: Failed to copy C:\Program Files\results\index.html to Z:\Results\index.html due to java.io.FileNotFoundException Z:\Results\index.html(The system cannot find the path specified)
輸出。如果我使用的位置,而不是映射的驅動器,它會工作。
<copy todir="//IP Address/C$/ShareFolder/Results/">
<fileset dir="${LocalResults}">
<include name="**/*"/>
</fileset>
</copy>
是否有理由在todir中使用映射的驅動器不起作用?
\\ MY_IP \共享\驅動器(http://stackoverflow.com/questions/23993445/accessing-linux-mount-位置上的窗戶,通詹金斯/ 23998101#2399810) – Laba42 2015-04-03 08:52:15