Changeset f3e60a4


Ignore:
Timestamp:
01/09/12 15:47:19 (4 months ago)
Author:
mrook
Branches:
master
Children:
2f5dd85, 0483922, 2469001, 2eb9b25
Parents:
f05d3e3
git-author:
Michiel Rook <mrook@…> (01/09/12 15:47:19)
git-committer:
Michiel Rook <mrook@…> (01/09/12 15:47:19)
Message:

Make cli/web stubs optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/phing/tasks/ext/phar/PharPackageTask.php

    r5f50c28 rf3e60a4  
    267267            $phar->setStub(file_get_contents($this->stubPath)); 
    268268        } else { 
    269             $phar->setDefaultStub( 
    270                 $this->cliStubFile->getPathWithoutBase($this->baseDirectory), 
    271                 $this->webStubFile->getPathWithoutBase($this->baseDirectory) 
    272             ); 
     269            if (!empty($this->cliStubFile)) { 
     270                $cliStubFile = $this->cliStubFile->getPathWithoutBase($this->baseDirectory); 
     271            } else { 
     272                $cliStubFile = null; 
     273            } 
     274 
     275            if (!empty($this->webStubFile)) { 
     276                $webStubFile = $this->webStubFile->getPathWithoutBase($this->baseDirectory); 
     277            } else { 
     278                $webStubFile = null; 
     279            } 
     280             
     281            $phar->setDefaultStub($cliStubFile, $webStubFile); 
    273282        } 
    274283 
Note: See TracChangeset for help on using the changeset viewer.