Changeset 77
- Timestamp:
- 06/12/06 19:46:05 (2 years ago)
- Files:
-
- branches/2.2/classes/phing/tasks/system/CopyTask.php (modified) (2 diffs)
- trunk/classes/phing/tasks/system/CopyTask.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/classes/phing/tasks/system/CopyTask.php
r59 r77 296 296 } 297 297 $this->buildMap($fromDir, $toDir, $files, $mapper, $this->fileCopyMap); 298 $this->buildMap($fromDir, $toDir, $dirs, $mapper, $this->dirCopyMap); 298 299 } 299 300 … … 380 381 // handle empty dirs if appropriate 381 382 if ($this->includeEmpty) { 382 $ e = array_keys($this->dirCopyMap);383 $destdirs = array_values($this->dirCopyMap); 383 384 $count = 0; 384 foreach ($ e as $dir) {385 $d = new PhingFile((string) $d ir);385 foreach ($destdirs as $destdir) { 386 $d = new PhingFile((string) $destdir); 386 387 if (!$d->exists()) { 387 388 if (!$d->mkdirs()) { trunk/classes/phing/tasks/system/CopyTask.php
r43 r77 296 296 } 297 297 $this->buildMap($fromDir, $toDir, $files, $mapper, $this->fileCopyMap); 298 $this->buildMap($fromDir, $toDir, $dirs, $mapper, $this->dirCopyMap); 298 299 } 299 300 … … 380 381 // handle empty dirs if appropriate 381 382 if ($this->includeEmpty) { 382 $ e = array_keys($this->dirCopyMap);383 $destdirs = array_values($this->dirCopyMap); 383 384 $count = 0; 384 foreach ($ e as $dir) {385 $d = new PhingFile((string) $d ir);385 foreach ($destdirs as $destdir) { 386 $d = new PhingFile((string) $destdir); 386 387 if (!$d->exists()) { 387 388 if (!$d->mkdirs()) {
