Changeset 114

Show
Ignore:
Timestamp:
09/12/06 09:05:05 (2 years ago)
Author:
mrook
Message:

Merge 2.2 branch up to & including r29

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1 r114  
    11                           _________________________ 
    22                           P     H     I     N     G 
     3 
     4 
     5Feb. ??, 2006 - Phing 2.2.0 
     6 
     7  * Removed some lingering E_STRICT errors, bugs with 5.1.x and PHP >= 5.0.5 (HL) 
     8 
     9  * Refactored parser to support many tags as children of base <project> tag (HL) 
     10 
     11  * Added new IfTask (HL) 
     12 
     13  * Added "spawn" attribute to ExecTask (only applies to *nix) 
     14 
     15  * Several bugfixes & behavior imporvements to ExecTask (HL, MR, Ben Gollmer) 
     16 
     17  * Bugfixes & refactoring for SVNLastRevisionTask (MR, Knut Urdalen) 
     18 
     19  * Fixed reference copy bug (HL, Matthias Pigulla) 
     20 
     21  * Added SvnExportTask (MR) 
     22 
     23  * Added support for FileList in DeleteTask. (HL) 
     24 
     25  * Added support for using setting Properties using CDATA value of <property> tag. (HL) 
     26 
     27  * Added ReferenceExistsCondition (Matthias Pigulla) 
     28 
     29  * Added Phing::log() static method & integrated PHP error handling with Phing logging (HL) 
     30 
     31  * Added new task to run the ionCube Encoder (MR) 
     32 
     33  * Added new HTML Tidy filter (HL) 
     34 
     35  * Added PhpLintTask (Knut Urdalen) 
     36   
     37  * Removed CoverageFormatter class (MR) 
     38    NOTE: This changes the usage of the collection of PHPUnit2 code coverage reports, see the 
     39    updated documentation for the CoverageSetupTask 
     40   
    341 
    442Sept. 18, 2005 - Phing 2.1.1 
    543 
    644  * Added support for specifying 4-char mask (e.g. 1777) to ChmodTask. (Hans Lellelid) 
    7    
     45 
    846  * Added .svn files to default excludes in DirectoryScanner. 
    9    
     47 
    1048  * Updated PHPUnit2 BatchTest to use class detection and non-dot-path loader. (Michiel Rook) 
    11    
     49 
    1250  * Added support for importing non dot-path files (Michiel Rook) 
    13    
     51 
    1452  * Add better error message when build fails with exception (Hans Lellelid) 
    15    
     53 
    1654  * Fixed runtime error when errors were encountered in AppendTask (Hans Lellelid) 
    1755 
    18    
     56 
    1957June 17, 2005 - Phing 2.1.0 
    2058 
     
    3472 
    3573  * New IncludePathTask (<includepath/>) for adding values to PHP's include_path. (Hans Lellelid) 
    36    
     74 
    3775  * Fix to Phing::import() to *not* attempt to invoke __autoload() in class_exists() check. (Hans Lellelid) 
    3876 
     
    5290    20  Phpunit2report missing XSL stylesheets 
    5391    21  Warnings when output dir does not exist in PHPUnit2Report 
    54                         
     92 
    5593Oct 16, 2004 - Phing 2.0.0 
    5694  * Minor fixes to make Phing run under E_STRICT/PHP5. 
     
    63101  * Fixed runtime errors and incomplete inheriting of properties in PhingTask 
    64102  * Added <fileset> support to AppendTask 
    65    
     103 
    66104March 19, 2004 - Phing 2.0.0b2 
    67    
     105 
    68106  * Brought up-to-date w/ PHP5.0.0RC1 (Hans) 
    69107  * Fixed bug in seting XSLT params using XSLTask (Hans, Jeff Moss) 
    70108  * Fixed PHPUnit test framework for PHPUnit-2.0.0alpha3 
    71   * Added "Adhoc" tasks, which allow for defining PHP task or type classes within the  
     109  * Added "Adhoc" tasks, which allow for defining PHP task or type classes within the 
    72110  buildfile. (Hans) 
    73   * Added PhpEvalTask which allows property values to be set to simple PHP evaluations or  
     111  * Added PhpEvalTask which allows property values to be set to simple PHP evaluations or 
    74112  the results of function/method calls. (Hans) 
    75113  * Added new phing.listener.PearLogger listener (logger).  Also, the -logfile arg is now 
    76114  supported. (Hans) 
    77115  * Fixed broken ForeachTask task.  (Manuel) 
    78    
     116 
    79117Dec 24, 2003 - Phing 2.0.0b1 
    80118 
     
    89127  * Corrected non-fatal bugs in: DeleteTask, ReflexiveTask 
    90128  * All core Phing classes now in PHP5 syntax (no "var" used, etc.) 
    91   * CopyTask will not stop build execution if a file cannot be copied (will log and  
     129  * CopyTask will not stop build execution if a file cannot be copied (will log and 
    92130  continue to next file). 
    93   * New abstract MatchingTask task makes it easier to create your own tasks that use  
     131  * New abstract MatchingTask task makes it easier to create your own tasks that use 
    94132  selectors. 
    95133  * Removed redundant calls in DirectoryScanner (<fileset> scanning now much faster). 
    96134  * Fixed fatal errors in File::equals() 
    97    
     135 
    98136Nov 24, 2003 - Phing 2.0.0a2 
    99137 
    100138  * Fixed ReplaceTokens filter to correctly replace matched tokens 
    101   * Changed "project.basedir" property to be absolute path of basedir   
     139  * Changed "project.basedir" property to be absolute path of basedir 
    102140  * Made IntrospectionHelper more tollerant of add*() and addConfigured*() signatures 
    103141  * New CvsTask and CvsPassTask for working with CVS repositories 
     
    107145  * Fixed bug in CopyFile/fileset that caused termination of copy operation on encounter 
    108146  of unreadable file 
    109    
     147 
    110148Nov 6, 20003 - Phing 2.0.0a1 
    111149 
  • trunk/classes/phing/IntrospectionHelper.php

    r1 r114  
    195195                                 
    196196                    preg_match('/@return[\s]+([\w]+)/', $method->getDocComment(), $matches); 
    197                     if (!empty($matches[1]) && class_exists($matches[1])) { 
     197                    if (!empty($matches[1]) && class_exists($matches[1], false)) { 
    198198                        $this->nestedTypes[$name] = $matches[1]; 
    199199                    } else {                     
  • trunk/classes/phing/tasks/ext/PhpLintTask.php

    r43 r114  
    3535   */ 
    3636  public function main() { 
     37    if(!isset($this->file) and count($this->filesets) == 0) { 
     38      throw new BuildException("Missing either a nested fileset or attribute 'file' set"); 
     39    } 
     40 
    3741    if($this->file instanceof PhingFile) { 
    3842      $this->lint($this->file->getPath()); 
     
    4246        $ds = $fs->getDirectoryScanner($project); 
    4347        $files = $ds->getIncludedFiles(); 
     48        $dir = $fs->getDir($this->project)->getPath(); 
    4449        foreach($files as $file) { 
    45           $this->lint($file); 
     50          $this->lint($dir.DIRECTORY_SEPARATOR.$file); 
    4651        } 
    4752      } 
    4853    } 
    49     $this->log('No syntax errors detected'); 
    5054  } 
    5155 
     
    6367        exec($command.$file, $message); 
    6468        if(!preg_match('/^No syntax errors detected/', $message[0])) { 
    65           throw new BuildException($message[1]); 
     69          $this->log($message[1], PROJECT_MSG_ERR); 
     70        } else { 
     71          $this->log($file.': No syntax errors detected', PROJECT_MSG_INFO); 
    6672        } 
    6773      } else { 
  • trunk/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html

    r88 r114  
    152152&nbsp;&nbsp;&lt;/fileset&gt; 
    153153&lt;/coverage-setup&gt; 
    154 &lt;phpunit2&gt; 
    155 &nbsp;&nbsp;&lt;formatter classname=&quot;phing.tasks.ext.coverage.CoverageFormatter&quot; usefile=&quot;false&quot;/&gt; 
     154&lt;phpunit2 codecoverage=&quot;true&quot;&gt; 
    156155&nbsp;&nbsp;&lt;batchtest&gt; 
    157156&nbsp;&nbsp;&nbsp;&nbsp;&lt;fileset dir=&quot;src&quot;&gt;