Changeset 114
- Timestamp:
- 09/12/06 09:05:05 (2 years ago)
- Files:
-
- trunk/CHANGELOG (modified) (6 diffs)
- trunk/classes/phing/IntrospectionHelper.php (modified) (1 diff)
- trunk/classes/phing/tasks/ext/PhpLintTask.php (modified) (3 diffs)
- trunk/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CHANGELOG
r1 r114 1 1 _________________________ 2 2 P H I N G 3 4 5 Feb. ??, 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 3 41 4 42 Sept. 18, 2005 - Phing 2.1.1 5 43 6 44 * Added support for specifying 4-char mask (e.g. 1777) to ChmodTask. (Hans Lellelid) 7 45 8 46 * Added .svn files to default excludes in DirectoryScanner. 9 47 10 48 * Updated PHPUnit2 BatchTest to use class detection and non-dot-path loader. (Michiel Rook) 11 49 12 50 * Added support for importing non dot-path files (Michiel Rook) 13 51 14 52 * Add better error message when build fails with exception (Hans Lellelid) 15 53 16 54 * Fixed runtime error when errors were encountered in AppendTask (Hans Lellelid) 17 55 18 56 19 57 June 17, 2005 - Phing 2.1.0 20 58 … … 34 72 35 73 * New IncludePathTask (<includepath/>) for adding values to PHP's include_path. (Hans Lellelid) 36 74 37 75 * Fix to Phing::import() to *not* attempt to invoke __autoload() in class_exists() check. (Hans Lellelid) 38 76 … … 52 90 20 Phpunit2report missing XSL stylesheets 53 91 21 Warnings when output dir does not exist in PHPUnit2Report 54 92 55 93 Oct 16, 2004 - Phing 2.0.0 56 94 * Minor fixes to make Phing run under E_STRICT/PHP5. … … 63 101 * Fixed runtime errors and incomplete inheriting of properties in PhingTask 64 102 * Added <fileset> support to AppendTask 65 103 66 104 March 19, 2004 - Phing 2.0.0b2 67 105 68 106 * Brought up-to-date w/ PHP5.0.0RC1 (Hans) 69 107 * Fixed bug in seting XSLT params using XSLTask (Hans, Jeff Moss) 70 108 * 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 72 110 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 74 112 the results of function/method calls. (Hans) 75 113 * Added new phing.listener.PearLogger listener (logger). Also, the -logfile arg is now 76 114 supported. (Hans) 77 115 * Fixed broken ForeachTask task. (Manuel) 78 116 79 117 Dec 24, 2003 - Phing 2.0.0b1 80 118 … … 89 127 * Corrected non-fatal bugs in: DeleteTask, ReflexiveTask 90 128 * 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 92 130 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 94 132 selectors. 95 133 * Removed redundant calls in DirectoryScanner (<fileset> scanning now much faster). 96 134 * Fixed fatal errors in File::equals() 97 135 98 136 Nov 24, 2003 - Phing 2.0.0a2 99 137 100 138 * 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 102 140 * Made IntrospectionHelper more tollerant of add*() and addConfigured*() signatures 103 141 * New CvsTask and CvsPassTask for working with CVS repositories … … 107 145 * Fixed bug in CopyFile/fileset that caused termination of copy operation on encounter 108 146 of unreadable file 109 147 110 148 Nov 6, 20003 - Phing 2.0.0a1 111 149 trunk/classes/phing/IntrospectionHelper.php
r1 r114 195 195 196 196 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)) { 198 198 $this->nestedTypes[$name] = $matches[1]; 199 199 } else { trunk/classes/phing/tasks/ext/PhpLintTask.php
r43 r114 35 35 */ 36 36 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 37 41 if($this->file instanceof PhingFile) { 38 42 $this->lint($this->file->getPath()); … … 42 46 $ds = $fs->getDirectoryScanner($project); 43 47 $files = $ds->getIncludedFiles(); 48 $dir = $fs->getDir($this->project)->getPath(); 44 49 foreach($files as $file) { 45 $this->lint($ file);50 $this->lint($dir.DIRECTORY_SEPARATOR.$file); 46 51 } 47 52 } 48 53 } 49 $this->log('No syntax errors detected');50 54 } 51 55 … … 63 67 exec($command.$file, $message); 64 68 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); 66 72 } 67 73 } else { trunk/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html
r88 r114 152 152 </fileset> 153 153 </coverage-setup> 154 <phpunit2> 155 <formatter classname="phing.tasks.ext.coverage.CoverageFormatter" usefile="false"/> 154 <phpunit2 codecoverage="true"> 156 155 <batchtest> 157 156 <fileset dir="src">
