Development

Changeset 1772

You must first sign up to be able to contribute.

Changeset 1772

Show
Ignore:
Timestamp:
08/23/06 16:47:36 (2 years ago)
Author:
fabien
Message:

pake: fixed a problem with getPhingVersion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/tags/RELEASE_1_1_0/lib/pake/tasks/pakePhingTask.class.php

    r1765 r1772  
    11<?php 
     2 
     3include_once 'phing/Phing.php'; 
     4if (!class_exists('Phing')) 
     5{ 
     6  throw new pakeException('You must install Phing to use this task. (pear install http://phing.info/pear/phing-current.tgz)'); 
     7} 
    28 
    39class pakePhingTask 
     
    3541    } 
    3642 
    37     include_once 'phing/Phing.php'; 
    38     if (!class_exists('Phing')) 
    39     { 
    40       throw new pakeException('You must install Phing to use this task. (pear install http://phing.info/pear/phing-current.tgz)'); 
    41     } 
    42  
    4343    Phing::startup(); 
    4444    Phing::setProperty('phing.home', getenv('PHING_HOME')); 
    4545 
    46     try 
    47     { 
    48       $m = new Phing(); 
    49       $m->execute($args); 
    50       $m->runBuild(); 
    51     } 
    52     catch (Exception $e) 
    53     { 
    54       throw new Exception($e->getMessage()); 
    55     } 
     46    $m = new pakePhing(); 
     47    $m->execute($args); 
     48    $m->runBuild(); 
    5649  } 
    5750} 
     51 
     52class pakePhing extends Phing 
     53{ 
     54  function getPhingVersion() 
     55  { 
     56    return 'pakePhing'; 
     57  } 
     58}