开发者

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

开发者 https://www.devze.com 2023-02-11 12:23 出处:网络
I\'m just playing around with Phing, and I\'ve setup a task like this: <scp .... > <fileset dir=\"/my/dir\">

I'm just playing around with Phing, and I've setup a task like this:

<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.

How can I have Phing transfer these symbolic links? 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.

Have a look at http://phing.info/docs/guide/stable/chapters/appendixes/AppendixD-CoreTypes.html#Fileset and try playing around with the expandsymboliclinks flag.

0

精彩评论

暂无评论...
验证码 换一张
取 消