# 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 nested elements. All options are set using PEAR_PackageFileManager2::setOptions().

The tag is used to set a simple option value.

    or option_value

The tag represents a complex data type. You can use nested (and nested with 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:

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

Package: phing\tasks\ext

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 nested elements. All options are set using PEAR_PackageFileManager2::setOptions().

The tag is used to set a simple option value.

    or option_value

The tag represents a complex data type. You can use nested (and nested with 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:

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.

Parent(s)
  \PearPackageTask < \MatchingTask < \Task < \ProjectComponent
Author
  Stuart Binge
Author
  Hans Lellelid
Version
  $Id: PearPackage2Task.php 862 2010-09-15 02:17:59Z victor $

### Methods

`__construct( ) : void`

`appendSelector( ) : void`

`createAnd( ) : void`

`createContains( ) : void`

`createCustom( ) : void`

`createDate( ) : void`

`createDepend( ) : void`

`createDepth( ) : void`

`createExclude( ) : void`

`createExcludesFile( ) : void`

`createFileSet( ) : void`

`createFilename( ) : void`

`createInclude( ) : void`

`createIncludesFile( ) : void`

`createMajority( ) : void`

`createMapping( ) : void`

`createNone( ) : void`

`createNot( ) : void`

`createOption( ) : void`

`createOr( ) : void`

`createPatternSet( ) : void`

`createPresent( ) : void`

`createRole( ) : void`

`createSelector( ) : void`

`createSize( ) : void`

`getDescription( ) : void`

`getDirectoryScanner( ) : void`

`getFileSets( ) : void`

`getImplicitFileSet( ) : void`
final

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getSelectors( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`hasSelectors( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

Main entry point.

`maybeConfigure( ) : void`

`perform( ) : void`

`selectorCount( ) : void`

`selectorElements( ) : void`

`setCaseSensitive( ) : void`

`setDefaultexcludes( ) : void`

`setDescription( ) : void`

`setDestFile( ) : void`

`setDir( ) : void`

`setExcludes( ) : void`

`setExcludesfile( ) : void`

`setFollowSymlinks( ) : void`

`setIncludes( ) : void`

`setIncludesfile( ) : void`

`setLocation( ) : void`

`setName( ) : void`

`setOptions( ) : void`

`setOwningTarget( ) : void`

`setPackage( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

`setVersion2Options( ) : void`

Documentation was generated by DocBlox 0.17.1.