Phing User Guide

Michiel Rook

Siad Ardroumli

Phing 3.x

2020-06-27 19:46:22


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. Composer Install
3.4. Phar package
3.5. 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
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. AvailableTask
B.8. Basename
B.9. ChmodTask
B.10. ChownTask
B.11. ConditionTask
B.12. CopyTask
B.13. DefaultExcludes
B.14. DeleteTask
B.15. DependSet
B.16. Diagnostics
B.17. Dirname
B.18. EchoTask
B.19. EchoPropertiesTask
B.20. EchoXML
B.21. ExecTask
B.22. FailTask
B.23. ForeachTask
B.24. IfTask
B.25. ImportTask
B.26. IncludePathTask
B.27. InputTask
B.28. LoadFileTask
B.29. MkdirTask
B.30. MoveTask
B.31. PathConvert
B.32. PhingTask
B.33. PhingCallTask
B.34. Subphing Task
B.35. Phingversion
B.36. PhpEvalTask
B.37. PropertyTask
B.38. PropertyPromptTask
B.39. Record
B.40. ReflexiveTask
B.41. ResolvePathTask
B.42. Relentless
B.43. Retry
B.44. RunTargetTask
B.45. SleepTask
B.46. SwitchTask
B.47. TaskdefTask
B.48. Tempfile Task
B.49. TouchTask
B.50. TruncateTask
B.51. TryCatchTask
B.52. TstampTask
B.53. TypedefTask
B.54. UpToDateTask
B.55. WaitForTask
B.56. 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. GitArchiveTask
C.15. GitBranchTask
C.16. GitCheckoutTask
C.17. GitCloneTask
C.18. GitCommitTask
C.19. GitFetchTask
C.20. GitGcTask
C.21. GitInitTask
C.22. GitLogTask
C.23. GitMergeTask
C.24. GitPullTask
C.25. GitPushTask
C.26. GitTagTask
C.27. GitDescribeTask
C.28. GrowlNotifyTask
C.29. HgAddTask
C.30. HgArchiveTask
C.31. HgCloneTask
C.32. HgCommitTask
C.33. HgInitTask
C.34. HgLogTask
C.35. HgPullTask
C.36. HgPushTask
C.37. HgRevertTask
C.38. HgTagTask
C.39. HgUpdateTask
C.40. HipchatTask
C.41. HttpGetTask
C.42. HttpRequestTask
C.43. IniFileTask
C.44. IoncubeEncoderTask
C.45. IoncubeLicenseTask
C.46. JsHintTask
C.47. JslLintTask
C.48. JsMinTask
C.49. JsonValidateTask
C.50. LiquibaseTask
C.51. LiquibaseChangeLogTask
C.52. LiquibaseDbDocTask
C.53. LiquibaseDiffTask
C.54. LiquibaseRollbackTask
C.55. LiquibaseTagTask
C.56. LiquibaseUpdateTask
C.57. MailTask
C.58. ManifestTask
C.59. NotifySendTask
C.60. PackageAsPathTask
C.61. ParallelTask
C.62. PatchTask
C.63. PathToFileSetTask
C.64. PDOSQLExecTask
C.65. PearPackageTask
C.66. PearPackage2Task
C.67. PharDataTask
C.68. PharPackageTask
C.69. PhkPackageTask
C.70. PhpCSTask
C.71. PHPCPDTask
C.72. PHPLocTask
C.73. PHPMDTask
C.74. PhpDependTask
C.75. PhpDocumentor2Task
C.76. PhpLintTask
C.77. PHPUnitTask
C.78. PHPUnitReport
C.79. PropertyCopy
C.80. PropertyRegexTask
C.81. ReplaceRegexpTask
C.82. rSTTask
C.83. S3PutTask
C.84. S3GetTask
C.85. SassTask
C.86. ScpTask
C.87. SmartyTask
C.88. SonarTask
C.89. SortList
C.90. SshTask
C.91. SvnCheckoutTask
C.92. SvnCommitTask
C.93. SvnCopyTask
C.94. SvnExportTask
C.95. SvnInfoTask
C.96. SvnLastRevisionTask
C.97. SvnListTask
C.98. SvnRevertTask
C.99. SvnLogTask
C.100. SvnUpdateTask
C.101. SvnSwitchTask
C.102. SvnProplistTask
C.103. SvnPropgetTask
C.104. SvnPropsetTask
C.105. StopwatchTask
C.106. SymfonyConsoleTask
C.107. SymlinkTask
C.108. TarTask
C.109. ThrowTask
C.110. UntarTask
C.111. UnzipTask
C.112. Variable
C.113. VersionTask
C.114. VisualizerTask
C.115. WikiPublishTask
C.116. XmlLintTask
C.117. XmlPropertyTask
C.118. ZendCodeAnalyzerTask
C.119. ZendGuardEncodeTask
C.120. ZendGuardLicenseTask
C.121. ZipTask
C.122. ZSDTPackTask
C.123. ZSDTValidateTask
C.124. PHPStanTask
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. 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
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. None
G.14. Not
G.15. Or
G.16. Readable
G.17. Writable
G.18. Executable
G.19. Selector
G.20. Symlink Selector
G.21. 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
J. File Formats
J.1. Build File Format
J.2. Property File Format
Bibliography