classes/phing/Phing.php
public static function getProperty($propName)
    {

        // some properties are detemined on each access
        // some are cached, see below

        // default is the cached value:
        $val = isset(self::$properties[$propName]) ? self::$properties[$propName] : null;

        // special exceptions
        switch ($propName) {
            case 'user.dir':
                $val = getcwd();
                break;
        }

        return $val;
    }
public static function getProperty($propName)
    {

        // some properties are detemined on each access
        // some are cached, see below

        // default is the cached value:
        $val = isset(self::$properties[$propName]) ? self::$properties[$propName] : null;

        // special exceptions
        switch ($propName) {
            case 'user.dir':
                $val = getcwd();
                break;
        }

        return $val;
    }
public static function getProperty ( $ propName ) { // some properties are detemined on each access // some are cached, see below // default is the cached value: $ val = isset ( self :: $ properties [ $ propName ] ) ? self :: $ properties [ $ propName ] : null ; // special exceptions switch ( $ propName ) { case 'user.dir' : $ val = getcwd ( ) ; break ; } return $ val ; }
Returns property value for a System property.
System properties are "global" properties like application.startdir,
and user.dir.  Many of these correspond to similar properties in Java
or Ant.

@param  string $propName
@return string Value of found property (or null, if none found).
Returns property value for a System property . System properties are global properties like application . startdir and user . dir . Many of these correspond to similar properties in Java or Ant .