FeaturePhp/Generator/CopyGenerator.php
protected function processFileSpecification($artifact, $fileSpecification) {
        $this->files[] = fphp\File\StoredFile::fromSpecification($fileSpecification);
        $this->tracingLinks[] = new fphp\Artifact\TracingLink(
            "file", $artifact, $fileSpecification->getSourcePlace(), $fileSpecification->getTargetPlace());
        $this->logFile->log($artifact, "added file \"{$fileSpecification->getTarget()}\"");
    }
protected function processFileSpecification($artifact, $fileSpecification) {
        $this->files[] = fphp\File\StoredFile::fromSpecification($fileSpecification);
        $this->tracingLinks[] = new fphp\Artifact\TracingLink(
            "file", $artifact, $fileSpecification->getSourcePlace(), $fileSpecification->getTargetPlace());
        $this->logFile->log($artifact, "added file \"{$fileSpecification->getTarget()}\"");
    }
protected function processFileSpecification ( $ artifact , $ fileSpecification ) { $ this -> files [ ] = fphp \ File \ StoredFile :: fromSpecification ( $ fileSpecification ) ; $ this -> tracingLinks [ ] = new fphp \ Artifact \ TracingLink ( "file" , $ artifact , $ fileSpecification -> getSourcePlace ( ) , $ fileSpecification -> getTargetPlace ( ) ) ; $ this -> logFile -> log ( $ artifact , "added file \"{$fileSpecification->getTarget()}\"" ) ; }
Adds a stored file from a specification.
Considers globally excluded files. Only exact file names are supported.
@param \FeaturePhp\Artifact\Artifact $artifact
@param \FeaturePhp\Specification\FileSpecification $fileSpecification
Adds a stored file from a specification . Considers globally excluded files . Only exact file names are supported .