diff --git a/PHPCI/Plugin/CleanBuild.php b/PHPCI/Plugin/CleanBuild.php index e72048b4..a9709d8a 100644 --- a/PHPCI/Plugin/CleanBuild.php +++ b/PHPCI/Plugin/CleanBuild.php @@ -10,7 +10,8 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Clean build removes Composer related files and allows PHPCI users to clean up their build directory. +* Useful as a precursor to copy_build. * @author Dan Cryer * @package PHPCI * @subpackage Plugins diff --git a/PHPCI/Plugin/CopyBuild.php b/PHPCI/Plugin/CopyBuild.php index 0d7c8a9a..15a5d56a 100644 --- a/PHPCI/Plugin/CopyBuild.php +++ b/PHPCI/Plugin/CopyBuild.php @@ -10,7 +10,7 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Copy Build Plugin - Copies the entire build to another directory. * @author Dan Cryer * @package PHPCI * @subpackage Plugins @@ -39,7 +39,7 @@ class CopyBuild implements \PHPCI\Plugin return false; } - $cmd = 'mkdir -p "%s" && cp -Rf "%s"* "%s/"'; + $cmd = 'mkdir -p "%s" && ls -1a "%s"* | xargs -r -t "%s/"'; $success = $this->phpci->executeCommand($cmd, $this->directory, $build, $this->directory); if ($this->ignore) { diff --git a/PHPCI/Plugin/PackageBuild.php b/PHPCI/Plugin/PackageBuild.php index 6aa08581..333de105 100644 --- a/PHPCI/Plugin/PackageBuild.php +++ b/PHPCI/Plugin/PackageBuild.php @@ -10,7 +10,7 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Create a ZIP or TAR.GZ archive of the entire build. * @author Dan Cryer * @package PHPCI * @subpackage Plugins