Added a way to detect errors during Phing execution
This commit is contained in:
parent
d9862f6eae
commit
4c07e38ce3
4 changed files with 52 additions and 30 deletions
|
|
@ -41,10 +41,17 @@ EOT
|
|||
if ($input->getOption('verbose')) {
|
||||
$this->additionalPhingArgs[]= 'verbose';
|
||||
}
|
||||
$this->callPhing('om');
|
||||
|
||||
foreach ($this->tempSchemas as $schemaFile => $schemaDetails) {
|
||||
$output->writeln(sprintf('Built Model classes for bundle <info>%s</info> from <comment>%s</comment>.', $schemaDetails['bundle'], $schemaDetails['path']));
|
||||
if (true === $this->callPhing('om')) {
|
||||
foreach ($this->tempSchemas as $schemaFile => $schemaDetails) {
|
||||
$output->writeln(sprintf(
|
||||
'Built Model classes for bundle <info>%s</info> from <comment>%s</comment>.',
|
||||
$schemaDetails['bundle'],
|
||||
$schemaDetails['path']
|
||||
));
|
||||
}
|
||||
} else {
|
||||
$output->writeln('<error>WARNING ! An error has occured.</error>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue