Example #1
0
 /**
  * @param  Project    $project
  * @throws \Exception
  */
 protected function buildCore(Project $project)
 {
     if (!($core = $project->getCorePackage())) {
         return;
     }
     if (!$project->isForce() && $this->isCoreBuilt($project)) {
         return;
     }
     $this->buildPackage($project, $core, $this->getStrategy('copy'));
 }
Example #2
0
 public function testIsForce()
 {
     $project = new Project();
     $project->setForce(true);
     $this->assertTrue($project->isForce());
 }