Phing User Guide

Andreas Aderhold

Manuel Holtgrewe

Hans Lellelid

Michiel Rook

Johan Persson


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. Composer Install
3.5. Other Install methods
3.6. 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. AttribTask
B.6. AvailableTask
B.7. Basename
B.8. ChmodTask
B.9. ChownTask
B.10. ConditionTask
B.11. CopyTask
B.12. CvsTask
B.13. CvsPassTask
B.14. DeleteTask
B.15. Diagnostics
B.16. Dirname
B.17. EchoTask
B.18. echoproperties
B.19. ExecTask
B.20. FailTask
B.21. ForeachTask
B.22. IfTask
B.23. ImportTask
B.24. IncludePathTask
B.25. InputTask
B.26. LoadFileTask
B.27. MkdirTask
B.28. MoveTask
B.29. PathToFileSetTask
B.30. PhingTask
B.31. PhingCallTask
B.32. Phingversion
B.33. PhpEvalTask
B.34. PropertyTask
B.35. PropertyPromptTask
B.36. Record
B.37. ReflexiveTask
B.38. ResolvePathTask
B.39. Retry
B.40. SwitchTask
B.41. TaskdefTask
B.42. Tempfile Task
B.43. TouchTask
B.44. TryCatchTask
B.45. TstampTask
B.46. TypedefTask
B.47. UpToDateTask
B.48. WaitForTask
B.49. 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. IniFileTask
C.30. IoncubeEncoderTask
C.31. IoncubeLicenseTask
C.32. JsHintTask
C.33. JslLintTask
C.34. JsMinTask
C.35. LiquibaseTask
C.36. LiquibaseChangeLogTask
C.37. LiquibaseDbDocTask
C.38. LiquibaseDiffTask
C.39. LiquibaseRollbackTask
C.40. LiquibaseTagTask
C.41. LiquibaseUpdateTask
C.42. MailTask
C.43. ManifestTask
C.44. PackageAsPathTask
C.45. NotifySendTask
C.46. ParallelTask
C.47. PatchTask
C.48. PDOSQLExecTask
C.49. PearPackageTask
C.50. PearPackage2Task
C.51. PharDataTask
C.52. PharPackageTask
C.53. PhkPackageTask
C.54. PhpCodeSnifferTask
C.55. PHPCPDTask
C.56. PHPLocTask
C.57. PHPMDTask
C.58. PhpDependTask
C.59. PhpDocumentorTask
C.60. PhpDocumentor2Task
C.61. PhpDocumentorExternalTask
C.62. PhpLintTask
C.63. PHPUnitTask
C.64. PHPUnitReport
C.65. RegexTask
C.66. rSTTask
C.67. S3PutTask
C.68. S3GetTask
C.69. ScpTask
C.70. SshTask
C.71. SimpleTestTask
C.72. SvnCheckoutTask
C.73. SvnCommitTask
C.74. SvnCopyTask
C.75. SvnExportTask
C.76. SvnInfoTask
C.77. SvnLastRevisionTask
C.78. SvnListTask
C.79. SvnLogTask
C.80. SvnUpdateTask
C.81. SvnSwitchTask
C.82. StopwatchTask
C.83. SymfonyConsoleTask
C.84. SymlinkTask
C.85. TarTask
C.86. ThrowTask
C.87. UntarTask
C.88. UnzipTask
C.89. VersionTask
C.90. WikiPublishTask
C.91. XmlLintTask
C.92. XmlPropertyTask
C.93. ZendCodeAnalyzerTask
C.94. ZendGuardEncodeTask
C.95. ZendGuardLicenseTask
C.96. ZipTask
C.97. ZSDTPackTask
C.98. ZSDTValidateTask
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. ConcatFilter
E.4. HeadFilter
E.5. IconvFilter
E.6. Line Contains
E.7. LineContainsRegexp
E.8. PrefixLines
E.9. ReplaceTokens
E.10. ReplaceTokensWithFile
E.11. ReplaceRegexp
E.12. SortFilter
E.13. StripLineBreaks
E.14. StripLineComments
E.15. StripPhpComments
E.16. StripWhitespace
E.17. TabToSpaces
E.18. TailFilter
E.19. TidyFilter
E.20. XincludeFilter
E.21. XsltFilter
F. Core mappers
F.1. Common Attributes
F.2. ChainedMapper
F.3. CompositeMapper
F.4. FirstMatchMapper
F.5. FlattenMapper
F.6. GlobMapper
F.7. IdentityMapper
F.8. MergeMapper
F.9. 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