1
<?php
2
/**
3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 *
15
 * This software consists of voluntary contributions made by many individuals
16
 * and is licensed under the LGPL. For more information please see
17
 * <http://phing.info>.
18
 */
19

20
/**
21
 * List all properties on files, dirs, or revisions from the working copy
22
 */
23
class SvnProplistTask extends SvnBaseTask
24
{
25
    private $propertyName = "svn.proplist";
26
    private $recursive = false;
27

28
    /**
29
     * Sets the name of the property to use
30
     */
31 0
    public function setPropertyName($propertyName)
32
    {
33 0
        $this->propertyName = $propertyName;
34
    }
35

36
    /**
37
     * Returns the name of the property to use
38
     */
39 0
    public function getPropertyName()
40
    {
41 0
        return $this->propertyName;
42
    }
43

44
    /**
45
     * Sets the name of the property to use
46
     */
47 0
    public function setRecursive($recursive)
48
    {
49 0
        $this->recursive = $recursive;
50
    }
51

52
    /**
53
     * Returns the name of the property to use
54
     */
55 0
    public function getRecursive()
56
    {
57 0
        return $this->recursive;
58
    }
59

60
    /**
61
     * The main entry point
62
     *
63
     * @throws BuildException
64
     */
65 0
    public function main()
66
    {
67 0
        $this->setup('proplist');
68

69 0
        $this->log("List all properties on files, dirs, or revisions from '" . $this->getWorkingCopy() . "'");
70

71 0
        $output = $this->run([$this->getWorkingCopy()], ['recursive' => $this->getRecursive()]);
72

73 0
        $this->project->setProperty($this->getPropertyName(), $output);
74
    }
75
}

Read our documentation on viewing source code .

Loading