Phing User Guide

Total Page:16

File Type:pdf, Size:1020Kb

Phing User Guide < > Phing User Guide Michiel Rook <[email protected]> Ken Guest <[email protected]> Siad Ardroumli <[email protected]> Phing User Guide by Michiel Rook, Ken Guest, and Siad Ardroumli Phing 3.x Publication date 2021-09-07 07:19:44 Copyright © 2002-2020 The Phing Project Preface ................................................................................................................................... xvii 1. About this book ..................................................................................................................... 1 1.1. Contributors (present and past) ................................................................................... 1 1.2. Copyright .................................................................................................................... 1 1.3. License ....................................................................................................................... 1 1.4. DocBook ..................................................................................................................... 1 1.4.1. Building the documentation ............................................................................... 2 1.4.2. Template for new tasks .................................................................................... 4 1.4.3. Customization of the look & feel of the rendered outputs .................................... 4 1.4.4. DocBook v5 elements used in the manual and their meaning .............................. 5 2. Introduction .......................................................................................................................... 11 2.1. What Phing Is ........................................................................................................... 11 2.2. Phing & Binarycloud: History ..................................................................................... 11 2.3. How Phing Works ..................................................................................................... 12 2.4. Cool, so how can I help? .......................................................................................... 12 2.4.1. Participating in the development ..................................................................... 12 3. Setting-up Phing .................................................................................................................. 15 3.1. System Requirements ............................................................................................... 15 3.1.1. Operating Systems ......................................................................................... 15 3.1.2. Software Dependencies .................................................................................. 15 3.2. Obtaining Phing ........................................................................................................ 15 3.2.1. Distribution Files ............................................................................................. 15 3.2.2. Composer Install ............................................................................................ 15 3.2.3. Phar package ................................................................................................. 16 3.2.4. Getting the latest source from Phing's Github repository ................................... 16 3.3. Running Phing .......................................................................................................... 16 3.3.1. Command Line ............................................................................................... 16 3.3.2. Supported command line arguments ............................................................... 16 4. Getting started ..................................................................................................................... 19 4.1. XML And Phing ........................................................................................................ 19 4.2. Writing A Simple Buildfile .......................................................................................... 19 4.2.1. Project Element .............................................................................................. 20 4.2.2. Target Element .............................................................................................. 21 4.2.3. Task Elements ............................................................................................... 21 4.2.4. Property Element ........................................................................................... 22 4.3. More Complex Buildfile ............................................................................................. 22 4.3.1. Handling source dependencies ....................................................................... 23 4.4. Relax NG Grammar .................................................................................................. 24 5. Project components ............................................................................................................. 25 5.1. Projects .................................................................................................................... 25 5.2. Version ..................................................................................................................... 25 5.3. Project Components in General ................................................................................. 25 5.4. Targets ..................................................................................................................... 26 5.5. Tasks ....................................................................................................................... 26 5.6. Types ....................................................................................................................... 27 5.6.1. Basics ............................................................................................................ 27 5.6.2. Referencing Types ......................................................................................... 27 5.7. Basic Types .............................................................................................................. 28 5.7.1. FileSet ....................................................................................................... 28 5.7.2. FileList ..................................................................................................... 28 5.7.3. FilterChains and Filters ............................................................................. 28 5.7.4. File Mappers .................................................................................................. 29 5.8. Conditions ................................................................................................................. 30 5.8.1. not ............................................................................................................... 30 5.8.2. and ............................................................................................................... 30 5.8.3. or ................................................................................................................. 30 5.8.4. xor ............................................................................................................... 30 5.8.5. os ................................................................................................................. 31 iii Phing User Guide 5.8.6. equals ......................................................................................................... 31 5.8.7. versioncompare .......................................................................................... 31 5.8.8. http ............................................................................................................. 32 5.8.9. PDOSQLExec .................................................................................................. 32 5.8.10. socket ........................................................................................................ 33 5.8.11. hasfreespace ............................................................................................ 33 5.8.12. isset .......................................................................................................... 34 5.8.13. contains .................................................................................................... 34 5.8.14. istrue ........................................................................................................ 34 5.8.15. isfalse ...................................................................................................... 35 5.8.16. ispropertytrue ........................................................................................ 35 5.8.17. ispropertyfalse ...................................................................................... 35 5.8.18. referenceexists ...................................................................................... 35 5.8.19. available .................................................................................................. 36 5.8.20. filesmatch ................................................................................................ 36 5.8.21. isfileselected ........................................................................................ 36 5.8.22. isfailure .................................................................................................. 36 5.8.23. matches .....................................................................................................
Recommended publications
  • File Operation Induced Unserialization Via the “Phar://” Stream Wrapper
    File Operation Induced Unserialization via the “phar://” Stream Wrapper Sam Thomas - @_s_n_t Contents Introduction ............................................................................................................................................ 2 Stream Wrappers .................................................................................................................................... 3 Phar Archives and the "phar://" Stream Wrapper ................................................................................. 4 Basic Attack Methodology ...................................................................................................................... 5 Identifying File Path Handling Vulnerabilities ......................................................................................... 6 The Phar File Format ............................................................................................................................... 7 Exploiting Induced Unserialization.......................................................................................................... 9 PHPGGC / PHARGGC ............................................................................................................................. 10 Case Studies .......................................................................................................................................... 11 Typo 3 ...............................................................................................................................................
    [Show full text]
  • WP-MIRROR 0.7.4 Reference Manual
    WP-MIRROR 0.7.4 Reference Manual Dr. Kent L. Miller November 22, 2014 DRAFT 1 DRAFT 2 To Tylery DRAFT i WP-MIRROR 0.7.4 Reference Manual Legal Notices Copyright (C) 2012–2014 Dr. Kent L. Miller. All rights reserved. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”. THIS PUBLICATION AND THE INFORMATION HEREIN ARE FURNISHED AS IS, ARE FURNISHED FOR INFORMATIONAL USE ONLY, ARE SUBJECT TO CHANGE WITH- OUT NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY THE AU- THOR. THE AUTHOR ASSUMES NO RESPONSIBILITY OR LIABILITY FOR ANY ER- RORS OR INACCURACIES THAT MAY APPEAR IN THE INFORMATIONAL CONTENT CONTAINED IN THIS MANUAL, MAKES NO WARRANTY OF ANY KIND (EXPRESS, IMPLIED, OR STATUTORY) WITH RESPECT TO THIS PUBLICATION,AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY, FITNESS FOR PAR- TICULAR PURPOSES, AND NONINFRINGEMENT OF THIRD-PARTY RIGHTS. The WP-MIRROR logotype (see margin) was released by the author into the public domain on 2014-Apr-10. See https://www.mediawiki.org/wiki/File:Wp-mirror.png. This logotype fea- tures a sunflower that is derived from 119px-Mediawiki logo sunflower Tournesol 5x rev2.png, which is also in the public domain. See https://en.wikipedia.org/wiki/File:Mediawiki_logo_sunflower_Tournesol_5x.png.
    [Show full text]
  • Staying Without Power a Case Study of the Drupal Content Management System by Qi Zhang
    Staying without Power A Case Study of the Drupal Content Management System By Qi Zhang Bachelor of Science in Engineering, Jiangxi Science and Technology Normal University (1999) Interfaculty initiative in information studies program, University of Tokyo (2006) Master of international studies, University of Tokyo (2008) Submitted to the System Design and Management Program in Partial Fulfillment of the Requirements for the degree of Master of Science In EngIneerIng and Management ARCHNES At the A/SSACHUSETTS INS fW E OF TECHNOLOGY Massachusetts Institute of Technology AUG 20 2013 May 2012 y2012 RRARIES C 2012 Massachusetts Institute of Technology Signature of Author Qi Zhang Certified by -. Michael A. Cusumano SMR Distinguished Professor of Management T( esis Supervisor Certified by_ Patrick Hale Director System Design and Management Program THIS PAGE IS INTENTIONALLY LEFT BLANK Acknowledgements I run the knowledge that I learned from M.I.T the most wisdom school of the world. It works AMAZING! I would also like to thank Michael, Imran and Pat who staying with me when I am without power. Love in M.I.T; Love in USA XlApq, M31 THIS PAGE IS INTENTIONALLY LEFT BLANK Staying without Power By Qi Zhang Submitted to the System Design and Management Program in Partial Fulfillment of the Requirements for the degree of Master of Science In Engineering and Management ABSTRACT This main focus of this thesis is not to describe the inner workings of the Ecosystem or software; it is to help young entrepreneurs with limited resources to not just survive, but thrive in a competitive business environment. Thesis Supervisor: Michael A.
    [Show full text]
  • From Content to Knowledge: a Perspective on CMS**
    AUTOMATYKA 2007 Tom 11 Zeszyt 12 Grzegorz J. Nalepa*, Antoni Ligêza*, Igor Wojnicki* From Content to Knowledge: a Perspective on CMS** 1. Introduction The Internet has become a single most important resource for instant information shar- ing. From the point of view of ordinary users it can be considered to constitute a very fle- xible and powerful version of the concept of the so-called blackboard architecture. The rapid growth of the Internet prompted a rapid development of specific software. This software addresses different aspects of information organization and interchange related issues, such as storing, retrieval, searching, indexing, aggregating, sharing, updating, etc. Taking into account the size and flexibility of the system as a whole, these problems consti- tute a real challenge. Content Management Systems (CMS for short) emerged as a technology providing a unified interface for large databases or data warehouses. In a broad sense a CMS consists of: a RDBMS (Relational Data Base System) which stores the data, and a complex web- based application or interface providing the access to the data. The web interface is built around using common web technologies. This software requires a proper and efficient run- time environment, including a web server. An important aspect of a CMS system is the possibility of user personalization, tracking, and interactive use. Today web technologies constitute an advanced and universal programming frame- work. This framework has a very heterogeneous structure including: data encoding and structuring languages (such as HTML and XML), meta-data languages (such as RDF), data transformation languages (such as XSL/T/FO), data presentation languages (such as CSS), server-side programming languages (such as PHP, JSP), and client-side programming lan- guages (such as Javascript).
    [Show full text]
  • Working-With-Mediawiki-Yaron-Koren.Pdf
    Working with MediaWiki Yaron Koren 2 Working with MediaWiki by Yaron Koren Published by WikiWorks Press. Copyright ©2012 by Yaron Koren, except where otherwise noted. Chapter 17, “Semantic Forms”, includes significant content from the Semantic Forms homepage (https://www. mediawiki.org/wiki/Extension:Semantic_Forms), available under the Creative Commons BY-SA 3.0 license. All rights reserved. Library of Congress Control Number: 2012952489 ISBN: 978-0615720302 First edition, second printing: 2014 Ordering information for this book can be found at: http://workingwithmediawiki.com All printing of this book is handled by CreateSpace (https://createspace.com), a subsidiary of Amazon.com. Cover design by Grace Cheong (http://gracecheong.com). Contents 1 About MediaWiki 1 History of MediaWiki . 1 Community and support . 3 Available hosts . 4 2 Setting up MediaWiki 7 The MediaWiki environment . 7 Download . 7 Installing . 8 Setting the logo . 8 Changing the URL structure . 9 Updating MediaWiki . 9 3 Editing in MediaWiki 11 Tabs........................................................... 11 Creating and editing pages . 12 Page history . 14 Page diffs . 15 Undoing . 16 Blocking and rollbacks . 17 Deleting revisions . 17 Moving pages . 18 Deleting pages . 19 Edit conflicts . 20 4 MediaWiki syntax 21 Wikitext . 21 Interwiki links . 26 Including HTML . 26 Templates . 27 3 4 Contents Parser and tag functions . 30 Variables . 33 Behavior switches . 33 5 Content organization 35 Categories . 35 Namespaces . 38 Redirects . 41 Subpages and super-pages . 42 Special pages . 43 6 Communication 45 Talk pages . 45 LiquidThreads . 47 Echo & Flow . 48 Handling reader comments . 48 Chat........................................................... 49 Emailing users . 49 7 Images and files 51 Uploading . 51 Displaying images . 55 Image galleries .
    [Show full text]
  • An In-Depth Look at Streams
    Get Soaked An in-depth look at streams Davey Shafik Developer at EngineYard/Orchestra.io Author of Zend PHP 5 Certification Study Guide & Sitepoints PHP Anthology: 101 Essential Tips, Tricks & Hacks A long time contributor to PEAR, phpdoc; new contributor to internals, FCKEditor Original Contributor to Zend Framework Hard of hearing. Speak up! (Buy my books!) Stream Basics in 5 minutes PHP Streams Layer ALL Input/Ouput PHP Streams Layer Stream Filters Stream Stream Context Wrapper Stream Transport Input/Output Input/Output • include/require, and _once variants • fopen, fread, fgets, fgetcsv, fputcsv, fwrite, fclose, feof, etc • file_get_contents, file_put_contents, readfile, file • mkdir, rename, unlink Stream Filters [SUCK!] Stream filters [suck!] • Modify Data on-the-fly as it passes through the stream • Appended/Removed on-the-fly • To the top and bottom of the stack • Can be chained • Defaults: • string.* (useless) Stream Wrappers Stream Wrappers • Several Built-in by default • file:, http:, ftp:, data: (5.2+), glob: (5.3+) • With openssl extension: https:, ftps: • With zlib extension: zlib: • Special php:// stream Stream Transports Stream Transports • TCP • UTP • UNIX/UDG • + SSL, SSLv2, SSLv3 or TLS • HTTPS is TCP+SSL (1, 2, or 3) Stream Contexts Stream contexts • Provides Context (duh) to stream wrappers • Configuration (options) • Request Type (HEAD, POST, GET) • Login Credentials Using Streams <?php // Define our context options $options = array( // We use a nested array like: // $options['stream_wrapper']['option'] = 'value'; 'http' =>
    [Show full text]
  • Integration of a 3D Rendering Engine with a Physics Simulator
    Universitat de Lleida Escola Politècnica Superior Màster en Enginyeria de Programari Lliure Treball de final de Màster Integration of a 3D rendering engine with a physics simulator Author: Alberto Montañola Lacort Directors: Carlos Ansótegui Gil Juan Manuel Gimeno Illa June 2009 Integration of a 3D rendering engine with a physics simulator Index 1.Introduction.........................................................................................9 1.1.Project Description.......................................................................9 1.2.Project Goals..............................................................................10 1.3.Document structure...................................................................10 2.Definitions, concepts and technology...............................................13 2.1.Definitions..................................................................................13 2.1.1.The scene............................................................................13 2.1.2.Scene Objects......................................................................14 2.2.Technologies...............................................................................18 2.2.1.The rendering engine..........................................................18 2.2.1.1.The rendering process..................................................19 2.2.1.2.Low level programing interfaces...................................20 2.2.1.3.High level programing interfaces..................................21 2.2.2.The input system.................................................................21
    [Show full text]
  • Installing PHP and Libraries
    APPENDIX A Installing PHP and Libraries This book is aimed at programmers with at least some basic experience using PHP, so it is likely you already have access to a machine or two with PHP installed. However, many programmers use the versions already preinstalled in web hosting accounts or the default versions provided by package managers and so are unaware of how to compile, install, and tweak PHP and its ecosystem of extensions and libraries directly. Throughout this book you’ve looked at a number of extensions and libraries that provide functional programming structures and helper functions, and I’ve discussed features unique to PHP 7–like type declarations. Your web host or package manager may not have these extensions or versions available for automatic installation, so it’s good to know how to install them yourself. In this appendix, you’ll look at the various ways to change the PHP base upon which your programs are developed and run. Compiling and Installing PHP There are a dozen different ways to get PHP, including downloading and compiling it yourself, downloading precompiled binaries, using package managers and software repositories, and finding it preinstalled by a forward-thinking administrator. On most Linux distributions, PHP can be installed with a one-line command such as sudo apt- get install php or through graphical package managers such as the Synaptic Package Manager or the Ubuntu Software Center. Many common PHP extensions and add-ons are likewise available as prebuilt packages or alternatively available for easy
    [Show full text]
  • Frequently Asked Questions - Comp.Lang.Prolog
    Frequently Asked Questions - comp.lang.prolog Markus Triska (Mar. 2 2007 - ... ) Remko Troncon (Jan. 6 2002 - Mar. 2 2007) Dirk-Jan Faber (Feb. 1 1999 - Jan. 6 2002) Jamie Andrews (Aug 26 1992 - Oct. 16 1997) General Information: This article contains the answers to some Frequently Asked Questions (FAQ) often seen in news://comp.lang.prolog/. It is posted (twice a month, currently on the 2nd and 16th) to help reduce volume in this newsgroup and to provide hard-to-find information of general interest. The World Wide Web URL for this FAQ is: http://www.logic.at/prolog/faq/ Please send questions about the FAQ and updates to <[email protected]>. 1. What is the Association for Logic Programming? To keep up with the current state of logic programming technology, readers can join the Association for Logic Programming (ALP) and receive their Newsletter. For details on how to join or send in contributions, check http://www.cs.nmsu.edu/ALP/ or contact Sandro Etalle <[email protected]> The Prolog Resource Guide (v0.6) was printed in issue 5/1 of the Newsletter (Feb. 1992). This lists information concerning Prolog Archives, Books, Suppliers, etc. It is now maintained by Mark Kantrowitz (<[email protected]>), and used to be posted periodically to news://comp.lang.prolog. 2. Where can I get a free Prolog for system X (PC, Mac, Unix or other)? The following are anonymous-FTP sites for free Prologs (or related languages) which are either in the public domain or are "copy-lefted" (permitted to be copied with some restrictions on commercial use).
    [Show full text]
  • Nový Dlhodobý Viacúčelový Sklad Úloh Na Cvičenia
    UNIVERZITA KOMENSKÉHO V BRATISLAVE FAKULTA MATEMATIKY, FYZIKY A INFORMTATIKY KATEDRA APLIKOVANEJ INFORMATIKY NOVÝ DLHODOBÝ VIACÚČELOVÝ SKLAD ÚLOH NA CVIČENIA BAKALÁRSKA PRÁCA Andrej Jursa Školiteľ: Mgr. Pavel Petrovič, PhD. Študijný program: 9.2.9 APLIKOVANÁ INFORMATIKA BRATISLAVA 2013 Abstrakt Text ... Čestne prehlasujem, že som túto prácu vypracoval samostatne, s použitím literatúry a zdrojov uvedených v závere práce. Andrej Jursa Poďakovanie Rád by som sa poďakoval svojmu školiteľovi bakalárskej práce Mgr. Pavlovi Petrovičovi, PhD. za cenné rady, pripomienky a usmernenia počas celého procesu tvorby tejto práce. Obsah 1 Úvod ......................................................................................................... 1 2 Východiská ................................................................................................ 2 2.1 Prehľad teórie ............................................................................................ 2 2.1.1 E-learning a learning management system ................................................. 2 2.1.2 SCORM .................................................................................................. 2 2.1.3 Unit testing ............................................................................................ 3 2.2 Prehľad existujúcich systémov ..................................................................... 4 2.2.1 Moodle .................................................................................................. 4 2.2.2 Chamilo ................................................................................................
    [Show full text]
  • Compiling and Installing PHP, Extensions, and Libs
    APPENDIX A Compiling and Installing PHP, Extensions, and Libs There are a dozen ways to get PHP, including downloading and compiling it yourself, downloading precompiled binaries, using package managers and software repositories, and finding it preinstalled by a forward-thinking administrator. On most Linux distributions, PHP can be installed with a one-line command such as sudo apt-get install php5 or through graphical package managers such as the Synaptic Package Manager or the Ubuntu Software Center. Many common PHP extensions and add-ons are likewise available as prebuilt packages or alternatively through the PECL and PEAR systems. However, sometimes it becomes necessary to do a little more work to install PHP; for instance, in the following situations: • Your project has requirements for a specific version of PHP that is different from the one shipped with your OS. • You need extensions not available as packages. • You want to compile a customized version of PHP specific to your needs. Like anything involved in computers and software development, compiling PHP can take you down a rabbit hole of options, customizations, compatibility issues, libraries, and dependencies. A whole book could be written about the possibilities (and possible headaches) involved. Luckily for us, in most use cases, the basics of compiling a standard version are quite straightforward. And like most things in life, it gets easier after you have done it once. The following section outlines the steps necessary for getting, compiling, and installing PHP and its core extensions. PHP is written in C, and because you might not be familiar with the process of compiling C programs, I have explained each step to give you an idea of what is happening.
    [Show full text]
  • COMPANY NAME Web Site Project
    Appendix A Enabled and Required Modules AddThis (addthis) AddThis.com provides an easy way to share your content across the web. Administration menu (admin_menu) Provides a dropdown menu to most administrative tasks and other common destinations (to users with the proper permissions). Administration menu Toolbar style (admin_menu_toolbar) A better Toolbar. Automatic Nodetitles (auto_nodetitle) Allows hiding of the content title field and automatic title creation. Better Exposed Filters (better_exposed_filters) Allow the use of checkboxes or radio buttons for exposed Views filters Better Formats (better_formats) Enhances the core input format system by managing input format defaults and settings. Big Menu (bigmenu) Scalable replacement for core menu management screen. Uses AJAX to replace the global menu management page, suitable for thousands of items Block (block) Controls the visual building blocks a page is constructed with. Blocks are boxes of content rendered into an area, or region, of a web page. Block languages (i18n_block) Enables language selector for blocks and optional block translation. Block reference (blockreference) Defines a field type for referencing a block from a node. Blog (blog) Enables multi-user blogs. Bundle copy (bundle_copy) Import and exports bundles through the UI. CAPTCHA (captcha) Base CAPTCHA module for adding challenges to arbitrary forms. Chaos tools (ctools) A library of helpful tools by Merlin of Chaos. MediaSmarts Website RFP Page 7 of 59 3/26/2021 NOT FOR DISTRIBUTION OR REUSE CKEditor (ckeditor) Enables CKEditor (WYSIWYG HTML editor) for use instead of plain text fields. Comment (comment) Allows users to comment on and discuss published content. Comment no homepage (comment_no_homepage) Simple module to remove the "homepage" field that the comment module adds by default.
    [Show full text]