Phing User Guide

Michiel Rook

Siad Ardroumli

Phing 3.x

2024-09-28 13:55:12


Preface
1. About this book
1.1. Contributors (present and past)
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. Running 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
6.9. Writing Selectors
6.10. Writing Conditions
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. Augment
B.7. AutoloaderTask
B.8. AvailableTask
B.9. Basename
B.10. Bindtargets
B.11. ChmodTask
B.12. ChownTask
B.13. ConditionTask
B.14. CopyTask
B.15. DefaultExcludes
B.16. DeleteTask
B.17. DependSet
B.18. Diagnostics
B.19. Dirname
B.20. EchoPropertiesTask
B.21. EchoTask
B.22. EchoXML
B.23. ExecTask
B.24. FailTask
B.25. FileHashTask
B.26. FileSizeTask
B.27. ForeachTask
B.28. IfTask
B.29. ImportTask
B.30. IncludePathTask
B.31. InputTask
B.32. JsonValidateTask
B.33. LoadFileTask
B.34. ManifestTask
B.35. MkdirTask
B.36. MoveTask
B.37. PathConvert
B.38. PathToFileSetTask
B.39. PhingCallTask
B.40. PhingTask
B.41. Phingversion
B.42. PhpEvalTask
B.43. PhpLintTask
B.44. PropertyCopy
B.45. PropertyRegexTask
B.46. PropertySelector
B.47. PropertyTask
B.48. Record
B.49. ReflexiveTask
B.50. Relentless
B.51. ReplaceRegexpTask
B.52. ResolvePathTask
B.53. Retry
B.54. RunTargetTask
B.55. SleepTask
B.56. SortList
B.57. Subphing Task
B.58. SwitchTask
B.59. SymlinkTask
B.60. TaskdefTask
B.61. Tempfile Task
B.62. ThrowTask
B.63. TouchTask
B.64. TruncateTask
B.65. TryCatchTask
B.66. TstampTask
B.67. TypedefTask
B.68. URLEncodeTask
B.69. UpToDateTask
B.70. Variable
B.71. VersionTask
B.72. WaitForTask
B.73. XsltTask
C. Optional tasks
C.1. ApiGenTask
C.2. ComposerTask
C.3. CoverageMergerTask
C.4. CoverageReportTask
C.5. CoverageSetupTask
C.6. CoverageThresholdTask
C.7. DbDeployTask
C.8. FileSyncTask
C.9. FtpDeployTask
C.10. GitArchiveTask
C.11. GitBranchTask
C.12. GitCheckoutTask
C.13. GitCloneTask
C.14. GitCommitTask
C.15. GitDescribeTask
C.16. GitFetchTask
C.17. GitGcTask
C.18. GitInitTask
C.19. GitLogTask
C.20. GitMergeTask
C.21. GitPullTask
C.22. GitPushTask
C.23. GitTagTask
C.24. GrowlNotifyTask
C.25. HgAddTask
C.26. HgArchiveTask
C.27. HgCloneTask
C.28. HgCommitTask
C.29. HgInitTask
C.30. HgLogTask
C.31. HgPullTask
C.32. HgPushTask
C.33. HgRevertTask
C.34. HgTagTask
C.35. HgUpdateTask
C.36. HipchatTask
C.37. HttpGetTask
C.38. HttpRequestTask
C.39. IniFileTask
C.40. IoncubeEncoderTask
C.41. IoncubeLicenseTask
C.42. JsHintTask
C.43. JsMinTask
C.44. JslLintTask
C.45. LiquibaseChangeLogTask
C.46. LiquibaseDbDocTask
C.47. LiquibaseDiffTask
C.48. LiquibaseRollbackTask
C.49. LiquibaseTagTask
C.50. LiquibaseTask
C.51. LiquibaseUpdateTask
C.52. MailTask
C.53. NotifySendTask
C.54. OpenTask
C.55. PDOSQLExecTask
C.56. PHPMDTask
C.57. PHPStanTask
C.58. PHPUnitReport
C.59. PHPUnitTask
C.60. ParallelTask
C.61. PatchTask
C.62. PharDataTask
C.63. PharPackageTask
C.64. PhkPackageTask
C.65. PhpCSTask
C.66. PhpDependTask
C.67. PhpDocumentor2Task
C.68. rSTTask
C.69. S3GetTask
C.70. S3PutTask
C.71. SassTask
C.72. ScpTask
C.73. SmartyTask
C.74. SonarTask
C.75. SshTask
C.76. StopwatchTask
C.77. SvnCheckoutTask
C.78. SvnCommitTask
C.79. SvnCopyTask
C.80. SvnExportTask
C.81. SvnInfoTask
C.82. SvnLastRevisionTask
C.83. SvnListTask
C.84. SvnLogTask
C.85. SvnPropgetTask
C.86. SvnProplistTask
C.87. SvnPropsetTask
C.88. SvnRevertTask
C.89. SvnSwitchTask
C.90. SvnUpdateTask
C.91. SymfonyConsoleTask
C.92. TarTask
C.93. UntarTask
C.94. UnzipTask
C.95. VisualizerTask
C.96. WikiPublishTask
C.97. XmlLintTask
C.98. XmlPropertyTask
C.99. ZSDTPackTask
C.100. ZSDTValidateTask
C.101. ZendCodeAnalyzerTask
C.102. ZipTask
D. Core Types
D.1. Description
D.2. Excludes
D.3. FileList
D.4. FileSet
D.5. DirSet
D.6. PatternSet
D.7. Path / Classpath
D.8. Regexp
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
E.22. ClassConstants
F. Core mappers
F.1. Common Attributes
F.2. ChainedMapper
F.3. CompositeMapper
F.4. FirstMatchMapper
F.5. CutDirsMapper
F.6. FlattenMapper
F.7. GlobMapper
F.8. IdentityMapper
F.9. MergeMapper
F.10. RegexpMapper
G. Core selectors
G.1. Contains
G.2. Date
G.3. Depend
G.4. Depth
G.5. Different
G.6. Filename
G.7. Present
G.8. Containsregexp
G.9. Size
G.10. Type
G.11. And
G.12. Majority
G.13. Modified
G.14. None
G.15. Not
G.16. Or
G.17. Readable
G.18. Writable
G.19. Executable
G.20. Selector
G.21. Symlink Selector
G.22. PosixPermissions Selector
H. Project Components
H.1. Phing Projects
H.2. Targets and Extension-Points
I. Loggers and Listeners
I.1. Listeners
I.2. Loggers
I.3. DefaultLogger
I.4. AnsiColorLogger
I.5. MailLogger
I.6. NoBannerLogger
I.7. ProfileLogger
I.8. StatisticsListener
I.9. TimestampedLogger
I.10. SilentLogger
I.11. MonologListener
I.12. DisguiseLogger
J. File Formats
J.1. Build File Format
J.2. Property File Format
Bibliography