简体   繁体   English

如何在带有目录链接的SCP目录中使用Phing?

[英]How can I use Phing to SCP directory with symlinks inside it?

I'm just playing around with Phing, and I've setup a task like this: 我只是在玩Phing,并且已经设置了以下任务:

<scp .... >
    <fileset dir="/my/dir">
        <include name="**" />
    </fileset>
</scp>

But it fails when it gets to a symlink within my directory (the symlink is a relative symlink pointing at another directory inside /my/dir structure . 但是,当它到达我目录中的符号链接时,它就会失败(该符号链接是指向/my/dir structure中另一个目录的相对符号链接。

How can I have Phing transfer these symbolic links? Phing如何转移这些符号链接? Or should I use another method? 还是应该使用其他方法?

Not sure what the expected behaviour is. 不知道预期的行为是什么。 Whether you want to transfer the actual symbolic link or the dereferenced file. 是否要传输实际的符号链接或已取消引用的文件。 However this might not be a problem of the actual scp task but rather of the fileset. 但是,这可能不是实际的scp任务的问题,而是文件集的问题。

Have a look at http://phing.info/docs/guide/stable/chapters/appendixes/AppendixD-CoreTypes.html#Fileset and try playing around with the expandsymboliclinks flag. 查看http://phing.info/docs/guide/stable/chapters/appendixes/AppendixD-CoreTypes.html#Fileset并尝试使用expandsymboliclinks标志。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM