Phing copies the contents of a folder

I am trying to move contents to another folder in Phing. I cannot directly load contents from SVN because they are in a zip file. After unpacking the file, I want to move the contents.

I found this syntax, but it doesn’t work: Copy entire directory with phing

Thanks!

+4
source share
1 answer

Otherwise, the message related to you is incorrect or where there is a change in phing with this answer.

Here comes the working build.xml , which copies test to test2 (expect from .svn folders). The syntax is as follows:

 <?xml version="1.0" encoding="UTF-8"?> <project name="Hexdump" default="build"> <target name="build"> <copy todir="test2"> <fileset dir="test"> <include name="**"></include> <exclude name="**/.svn/**"></exclude> </fileset> </copy> </target> </project> 

You can refer to the Phing Core Tasks Documentation

+5
source

Source: https://habr.com/ru/post/1482248/


All Articles