# classes/phing/tasks/ext/PearPackage2Task.php

A task to create a PEAR package.xml version 2.0 file.

This class uses the PEAR_PackageFileManager2 class to perform the work.

This class is designed to be very flexible -- i.e. account for changes to the package.xml w/o requiring changes to this class. We've accomplished this by having generic and <mapping> nested elements. All options are set using PEAR_PackageFileManager2::setOptions().

The tag is used to set a simple option value. `or option_value`

The <mapping> tag represents a complex data type. You can use nested <element> (and nested <element> with <element> tags) to represent the full complexity of the structure. Bear in mind that what you are creating will be mapped to an associative array that will be passed in via PEAR_PackageFileManager2::setOptions(). ``

Here's an over-simple example of how this could be used: `<element>`

Look at the build.xml in the Phing base directory (assuming you have the full distro / CVS version of Phing) to see a more complete example of how to call this script.

author
  Stuart Binge
author
  Hans Lellelid
package
  phing.tasks.ext
version
  $Id: PearPackage2Task.php 862 2010-09-15 02:17:59Z victor $

## \PearPackage2Task
jump to top

A task to create a PEAR package.xml version 2.0 file.

This class uses the PEAR_PackageFileManager2 class to perform the work.

This class is designed to be very flexible -- i.e. account for changes to the package.xml w/o requiring changes to this class. We've accomplished this by having generic and <mapping> nested elements. All options are set using PEAR_PackageFileManager2::setOptions().

The tag is used to set a simple option value. `or option_value`

The <mapping> tag represents a complex data type. You can use nested <element> (and nested <element> with <element> tags) to represent the full complexity of the structure. Bear in mind that what you are creating will be mapped to an associative array that will be passed in via PEAR_PackageFileManager2::setOptions(). ``

Here's an over-simple example of how this could be used: `<element>`

Look at the build.xml in the Phing base directory (assuming you have the full distro / CVS version of Phing) to see a more complete example of how to call this script.

Extends from
  \PearPackageTask
author
  Stuart Binge
author
  Hans Lellelid
copyright
  2001,2002 THYRELL. All rights reserved
package
  phing.tasks.ext
version
  $Id: PearPackage2Task.php 862 2010-09-15 02:17:59Z victor $

### Methods

`init( ) :`
`main( ) : void`
Main entry point.
`setVersion2Options( ) :`
Documentation was generated by DocBlox 0.13.1.