phingofficial / phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.
https://www.phing.info
GNU Lesser General Public License v3.0
1.16k stars 319 forks source link

Integrate SPL into Phing (Trac #281) #531

Closed phing-issues-importer closed 6 years ago

phing-issues-importer commented 8 years ago

Integrate [http://ru.php.net/manual/en/book.spl.php SPL] features (Iterator, ArrayAccess...) to Phing, as [http://phing.tigris.org/servlets/ReadMsg?list=dev&msgNo=782 discussed].

Migrated from https://www.phing.info/trac/ticket/281

{
    "status": "new", 
    "changetime": "2016-10-07T08:28:55", 
    "description": "Integrate [http://ru.php.net/manual/en/book.spl.php SPL] features (Iterator, ArrayAccess...) to Phing, as [http://phing.tigris.org/servlets/ReadMsg?list=dev&msgNo=782 discussed].", 
    "reporter": "alexeyshockov", 
    "cc": "mp@webfactory.de", 
    "resolution": "", 
    "_ts": "1475828935569836", 
    "component": "phing-core", 
    "summary": "Integrate SPL into Phing", 
    "priority": "major", 
    "keywords": "spl", 
    "version": "", 
    "time": "2008-09-30T12:16:02", 
    "milestone": "4.0", 
    "owner": "alexeyshockov", 
    "type": "enhancement"
}
phing-issues-importer commented 8 years ago

Trac update at 20110325T09:23:04: mrook changed milestone from "TBD" to "2.5.0"

phing-issues-importer commented 8 years ago

Trac update at 20110627T18:57:09: mp commented:

A good place to start could be the way FileSets are handled... there is a recurring pattern all over the place that looks like

          // $fs is a FileSet
      $fromDir = $fs->getDir($this->project);
          $ds = $fs->getDirectoryScanner($this->project);
      foreach ($ds->getIncludedFiles() as $srcFile) {
              $pf = new PhingFile($fromDir, $srcFile)
              ...

that could just read

      foreach ($pf in $fs) {
              ...

I don't know whether there is a need at all to access the excludedFile from the directory scanner? When it comes to processing files and directories separately (which I've seen in a few places), PhingFile also supports isFile()/isDirectory().

phing-issues-importer commented 8 years ago

Trac update at 20110627T18:57:30: mp changed cc from "" to "mp@webfactory.de"

phing-issues-importer commented 8 years ago

Trac update at 20150909T10:05:38: Michiel Rook commented:

Refs #531 - merge IterableFileSet / FileSet Changeset: 3f340ce00d41432545cad5892fd7ebc5fdf56bcf

phing-issues-importer commented 8 years ago

Trac update at 20150909T10:05:41: Michiel Rook commented:

Refs #531 - merge IterableFileSet / FileSet Changeset: 3f340ce00d41432545cad5892fd7ebc5fdf56bcf

phing-issues-importer commented 8 years ago

Trac update at 20161005T20:49:11: Michiel Rook commented:

Refs #531 - merge IterableFileSet / FileSet Changeset: 3f340ce00d41432545cad5892fd7ebc5fdf56bcf

phing-issues-importer commented 8 years ago

Trac update at 20161005T20:49:13: Michiel Rook commented:

Refs #531 - merge IterableFileSet / FileSet Changeset: 3f340ce00d41432545cad5892fd7ebc5fdf56bcf

phing-issues-importer commented 8 years ago

Trac update at 20161007T08:28:55:

Milestone renamed

  • mrook changed milestone from "3.0" to "4.0"