Does anyone know if its possible to use phing to copy an entire folder with files and sub folders (joomla core download) to another folder, but without the .svn folders.
I have downloaded joomla using SVN, and I want to export it to my joomla dev folder using phing, without the need to have to list every single file type. My plan is to use this to keep my dev updated from the trunk.
I know how to exclude
But cannot find anyway to include everything without listing every file, or trying to guess every file type, just in case I miss something!
Suggestions Paul
You have to use the cp command. cp is shorthand for copy. The syntax is simple, too. Use cp followed by the file you want to copy and the destination where you want it moved.
To copy files or directories in Unix-based operating systems (Linux and MacOS), you use the cp command. The cp command is a relatively simple command, but its behavior changes slightly depending on the inputs (files vs directories) and the options you pass to it.
Answer: Use the cp Command You can use the cp command to copy files locally from one directory to another. The -a option copy files recursively, while preserving the file attributes such as timestamp. The period symbol ( . ) at end of the source path allows to copy all files and folders, including hidden ones.
Looks like phing is modeled after ant? Try this:
<copy todir="my/joomla/dev">
<fileset dir="joomla/checkout">
<include>**</include>
<exclude>**/.svn/**</exclude>
</fileset>
</copy>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With