|
|
@@ -1977,6 +1977,8 @@ Wygenerowany raport Benford'a nr <?=$this->SOURCE['ID']?>
|
|
|
$baseDir = "/opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/{$basename}";
|
|
|
$ditamapFile = "{$baseDir}/{$basename}.ditamap";
|
|
|
$pdfFile = "{$baseDir}/pdf/{$basename}.pdf";
|
|
|
+ if (!file_exists($antDir)) mkdir($antDir, 0770, true);
|
|
|
+ if (!file_exists($antDir)) throw new Exception("Błąd podczas tworzenia katalogu {$andDir}");
|
|
|
copy($xmlFile, $antXmlFile);
|
|
|
shell_exec("cd /Library/Server/Web/Data/Sites/Default/SE/schema/WPS_Functions/default_db/CRM_PROCES_tree && sudo /opt/local/bin/ant -f build_CRM_PROCES_tree.xml default_db:PROCES_INIT:tree:dita -Duuid={$basename}");
|
|
|
if (!file_exists($ditamapFile)) throw new Exception("Nie udało się wygenerować pliku ditamap");
|