Changeset 582f22d
- Timestamp:
- 12/27/11 15:33:17 (5 months ago)
- Branches:
- master
- Children:
- ffa0760
- Parents:
- 8601090
- git-author:
- Michiel Rook <mrook@…> (12/27/11 15:33:17)
- git-committer:
- Michiel Rook <mrook@…> (12/27/11 15:33:17)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/phing/tasks/ext/ExtractBaseTask.php
r237cb3e r582f22d 40 40 protected $removepath; 41 41 protected $filesets = array(); // all fileset objects assigned to this task 42 43 /** 44 * Set to true to always extract (and possibly overwrite) 45 * all files from the archive 46 * @var boolean 47 */ 48 protected $forceExtract = false; 42 49 43 50 /** … … 71 78 $this->removepath = $removepath; 72 79 } 80 81 /** 82 * Sets the forceExtract attribute 83 * @param boolean $forceExtract 84 */ 85 public function setForceExtract($forceExtract) 86 { 87 $this->forceExtract = (bool) $forceExtract; 88 } 73 89 74 90 /** … … 101 117 } 102 118 103 if (!$this->isDestinationUpToDate($compressedArchiveFile)) {119 if ($this->forceExtract || !$this->isDestinationUpToDate($compressedArchiveFile)) { 104 120 $filesToExtract[] = $compressedArchiveFile; 105 121 } else { -
docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html
r8601090 r582f22d 7408 7408 <td>No</td> 7409 7409 </tr> 7410 <tr> 7411 <td>forceExtract</td> 7412 <td>Boolean</td> 7413 <td>When set to false, only extract files if the destination does not exist yet or is older than the archive. 7414 When set to true, always extract files.</td> 7415 <td>false</td> 7416 <td>No</td> 7417 </tr> 7410 7418 </tbody> 7411 7419 </table> … … 7453 7461 <td>Yes</td> 7454 7462 </tr> 7463 <tr> 7464 <td>forceExtract</td> 7465 <td>Boolean</td> 7466 <td>When set to false, only extract files if the destination does not exist yet or is older than the archive. 7467 When set to true, always extract files.</td> 7468 <td>false</td> 7469 <td>No</td> 7470 </tr> 7455 7471 </tbody> 7456 7472 </table>
Note: See TracChangeset
for help on using the changeset viewer.
