Phing User Guide

Andreas Aderhold

Manuel Holtgrewe

Hans Lellelid

Michiel Rook

Johan Persson

2014-10-29


Preface
1. About this book
1.1. Authors
1.2. Copyright
1.3. License
1.4. DocBook
2. Introduction
2.1. What Phing Is
2.2. Phing & Binarycloud: History
2.3. How Phing Works
2.4. Cool, so how can I help?
3. Setting-up Phing
3.1. System Requirements
3.2. Obtaining Phing
3.3. PEAR Install
3.4. Non-PEAR Install
3.5. Calling Phing
4. Getting started
4.1. XML And Phing
4.2. Writing A Simple Buildfile
4.3. More Complex Buildfile
4.4. Relax NG Grammar
5. Project components
5.1. Projects
5.2. Version
5.3. Project Components in General
5.4. Targets
5.5. Tasks
5.6. Types
5.7. Basic Types
5.8. Conditions
6. Extending Phing
6.1. Extension Possibilities
6.2. Source Layout
6.3. System Initialization
6.4. System Services
6.5. Build Lifecycle
6.6. Writing Tasks
6.7. Writing Types
6.8. Writing Mappers
A. Fact Sheet
A.1. Built-In Properties
A.2. Command Line Arguments
A.3. Distribution File Layout
A.4. Program Exit Codes
A.5. The LGPL License
A.6. The GFDL License
B. Core tasks
B.1. AdhocTaskdefTask
B.2. AdhocTypedefTask
B.3. AppendTask
B.4. ApplyTask
B.5. AvailableTask
B.6. ChmodTask
B.7. ChownTask
B.8. ConditionTask
B.9. CopyTask
B.10. CvsTask
B.11. CvsPassTask
B.12. DeleteTask
B.13. EchoTask
B.14. ExecTask
B.15. FailTask
B.16. ForeachTask
B.17. IfTask
B.18. ImportTask
B.19. IncludePathTask
B.20. InputTask
B.21. LoadFileTask
B.22. MkdirTask
B.23. MoveTask
B.24. PhingTask
B.25. PhingCallTask
B.26. PhpEvalTask
B.27. PropertyTask
B.28. PropertyPromptTask
B.29. ReflexiveTask
B.30. ResolvePathTask
B.31. TaskdefTask
B.32. TouchTask
B.33. TryCatchTask
B.34. TstampTask
B.35. TypedefTask
B.36. UpToDateTask
B.37. WaitForTask
B.38. XsltTask
C. Optional tasks
C.1. ApiGenTask
C.2. AutoloaderTask
C.3. ComposerTask
C.4. CoverageMergerTask
C.5. CoverageReportTask
C.6. CoverageSetupTask
C.7. CoverageThresholdTask
C.8. DbDeployTask
C.9. ExportPropertiesTask
C.10. FileHashTask
C.11. FileSizeTask
C.12. FileSyncTask
C.13. FtpDeployTask
C.14. GitInitTask
C.15. GitCloneTask
C.16. GitGcTask
C.17. GitBranchTask
C.18. GitFetchTask
C.19. GitCheckoutTask
C.20. GitCommitTask
C.21. GitMergeTask
C.22. GitPullTask
C.23. GitPushTask
C.24. GitTagTask
C.25. GitLogTask
C.26. GrowlNotifyTask
C.27. HttpGetTask
C.28. HttpRequestTask
C.29. IoncubeEncoderTask
C.30. IoncubeLicenseTask
C.31. JsHintTask
C.32. JslLintTask
C.33. JsMinTask
C.34. LiquibaseTask
C.35. LiquibaseChangeLogTask
C.36. LiquibaseDbDocTask
C.37. LiquibaseDiffTask
C.38. LiquibaseRollbackTask
C.39. LiquibaseTagTask
C.40. LiquibaseUpdateTask
C.41. MailTask
C.42. ManifestTask
C.43. ParallelTask
C.44. PatchTask
C.45. PDOSQLExecTask
C.46. PearPackageTask
C.47. PearPackage2Task
C.48. PharPackageTask
C.49. PhkPackageTask
C.50. PhpCodeSnifferTask
C.51. PHPCPDTask
C.52. PHPLocTask
C.53. PHPMDTask
C.54. PhpDependTask
C.55. PhpDocumentorTask
C.56. PhpDocumentor2Task
C.57. PhpDocumentorExternalTask
C.58. PhpLintTask
C.59. PHPUnitTask
C.60. PHPUnitReport
C.61. rSTTask
C.62. S3PutTask
C.63. S3GetTask
C.64. ScpTask
C.65. SshTask
C.66. SimpleTestTask
C.67. SvnCheckoutTask
C.68. SvnCommitTask
C.69. SvnCopyTask
C.70. SvnExportTask
C.71. SvnInfoTask
C.72. SvnLastRevisionTask
C.73. SvnListTask
C.74. SvnLogTask
C.75. SvnUpdateTask
C.76. SvnSwitchTask
C.77. StopwatchTask
C.78. SymfonyConsoleTask
C.79. SymlinkTask
C.80. TarTask
C.81. UntarTask
C.82. UnzipTask
C.83. VersionTask
C.84. WikiPublishTask
C.85. XmlLintTask
C.86. XmlPropertyTask
C.87. ZendCodeAnalyzerTask
C.88. ZendGuardEncodeTask
C.89. ZendGuardLicenseTask
C.90. ZipTask
D. Core Types
D.1. Excludes
D.2. FileList
D.3. FileSet
D.4. PatternSet
D.5. Path / Classpath
D.6. PearPackageFileSet
E. Core filters
E.1. PhingFilterReader
E.2. ExpandProperties
E.3. HeadFilter
E.4. IconvFilter
E.5. Line Contains
E.6. LineContainsRegexp
E.7. PrefixLines
E.8. ReplaceTokens
E.9. ReplaceTokensWithFile
E.10. ReplaceRegexp
E.11. StripLineBreaks
E.12. StripLineComments
E.13. StripPhpComments
E.14. StripWhitespace
E.15. TabToSpaces
E.16. TailFilter
E.17. TidyFilter
E.18. XincludeFilter
E.19. XsltFilter
F. Core mappers
F.1. Common Attributes
F.2. FlattenMapper
F.3. GlobMapper
F.4. IdentityMapper
F.5. MergeMapper
F.6. RegexpMapper
G. Core selectors
G.1. Contains
G.2. Date
G.3. Depend
G.4. Depth
G.5. Filename
G.6. Present
G.7. Containsregexp
G.8. Size
G.9. Type
G.10. And
G.11. Majority
G.12. None
G.13. Not
G.14. Or
G.15. Selector
H. Project Components
H.1. Phing Projects
H.2. Targets
I. File Formats
I.1. Build File Format
I.2. Property File Format
Bibliography