Show
Ignore:
Timestamp:
02/11/06 18:32:48 (3 years ago)
Author:
hans
Message:

Added support for <property> task to use CDATA tag value as property value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/tasks/system/PropertyTask.php

    r1 r12  
    22 
    33/* 
    4  *  $Id: PropertyTask.php,v 1.14 2006/02/02 20:27:10 hlellelid Exp
     4 *  $Id
    55 * 
    66 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
     
    2929 * @author    Andreas Aderhold <andi@binarycloud.com> 
    3030 * @author    Hans Lellelid <hans@xmpl.org> 
    31  * @version   $Revision: 1.14
     31 * @version   $Revision
    3232 * @package   phing.tasks.system 
    3333 */ 
     
    7272        $this->value = (string) $value; 
    7373    } 
    74  
     74         
     75        /** 
     76         * Sets value of property to CDATA tag contents. 
     77         * @param string $values 
     78         * @since 2.2.0 
     79         */ 
     80        public function addText($value) { 
     81                $this->setValue($value); 
     82        } 
    7583     
    7684    /** Get the value of current property component. */ 
     
    7886        return $this->value; 
    7987    } 
    80  
    8188     
    8289    /** Set a file to use as the source for properties. */