classes/phing/tasks/ext/VersionTask.php
VersionTask
Increments a three-part version number from a given file and writes it back to the file. Incrementing is based on given releasetype, which can be one of Major, Minor and Bugfix. Resulting version number is also published under supplied property.
- author
- Mike Wittje
- package
- phing.tasks.ext
- version
- $Id: VersionTask.php 1084 2011-05-06 09:55:25Z mrook $ $Rev $Revision: 1084 $ $Date: 2011-05-06 11:55:25 +0200 (Fri, 06 May 2011) $ $Author: mrook $
\VersionTask
VersionTask
Increments a three-part version number from a given file and writes it back to the file. Incrementing is based on given releasetype, which can be one of Major, Minor and Bugfix. Resulting version number is also published under supplied property.
- Extends from
- \Task
- author
- Mike Wittje
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext
- version
- $Id: VersionTask.php 1084 2011-05-06 09:55:25Z mrook $ $Rev $Revision: 1084 $ $Date: 2011-05-06 11:55:25 +0200 (Fri, 06 May 2011) $ $Author: mrook $
Constants
Properties
Methods

getVersion(
string $filecontent
)
:
stringReturns new version number corresponding to Release type
| Name | Type | Description |
|---|---|---|
| $filecontent | string |
| Type | Description |
|---|---|
| string |

setFile(
\PhingFile $file
)
:
Set Property for File containing versioninformation
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setProperty(
$property
)
:
voidSet name of property to be set
| Name | Type | Description |
|---|---|---|
| $property |