Changeset 249

Show
Ignore:
Timestamp:
10/17/07 00:58:00 (9 months ago)
Author:
hans
Message:

Merging fix for #157 into trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/tasks/ext/PDOSQLExecTask.php

    r221 r249  
    273273                throw new BuildException("Source file does not exist!", $this->location); 
    274274            } 
    275  
     275             
    276276            // deal with the filesets 
    277             for ($i = 0,$size=count($this->filesets); $i < $size; $i++) { 
    278                 $fs = $this->filesets[$i]; 
     277            foreach($this->filesets as $fs) { 
    279278                $ds = $fs->getDirectoryScanner($this->project); 
    280279                $srcDir = $fs->getDir($this->project); 
    281                  
    282280                $srcFiles = $ds->getIncludedFiles(); 
    283                  
    284281                // Make a transaction for each file 
    285                 for ($j=0, $size=count($srcFiles); $j < $size; $j++) { 
     282                foreach($srcFiles as $srcFile) { 
    286283                    $t = $this->createTransaction(); 
    287                     $t->setSrc(new PhingFile($srcDir, $srcFiles[$j])); 
     284                    $t->setSrc(new PhingFile($srcDir, $srcFile)); 
    288285                } 
    289286            }