|
@@ -1032,6 +1032,20 @@ Router::getRoute("UrlAction_BiAuditGenerate")->' . $function . ';
|
|
|
];
|
|
];
|
|
|
$destXmlFile = "{$powiazanieDirLocation}/relations.xml";
|
|
$destXmlFile = "{$powiazanieDirLocation}/relations.xml";
|
|
|
rename($xmlFile, $destXmlFile);
|
|
rename($xmlFile, $destXmlFile);
|
|
|
|
|
+
|
|
|
|
|
+ //ant
|
|
|
|
|
+ $antDir = "/Library/Server/Web/Data/Sites/Default/SE/schema/WPS_Functions/default_db/recurse_ant/out";
|
|
|
|
|
+ $antFilename = "relations-{$row['ID']}.out_task.dita.final_with_RelatedFeatureLoop.xml";
|
|
|
|
|
+ $antFile = $antDir . "/" . $antFilename;
|
|
|
|
|
+ $pdfFile = "/Library/Server/Web/Data/Sites/Default/SE/schema/WPS_Functions/default_db/CRM_PROCES_tree/temp/relations-{$row['ID']}/pdf/relations-{$row['ID']}.pdf";
|
|
|
|
|
+ $pdfDestFile = "{$powiazanieDirLocation}/relations.pdf";
|
|
|
|
|
+ if (!file_exists($antDir)) mkdir($antDir, 0755, true);
|
|
|
|
|
+ if (!is_dir($antDir)) $sqlArr['FILE_STATUS_info'] .= ", ale nie udało się utworzyć pliku PDF";
|
|
|
|
|
+ else {
|
|
|
|
|
+ copy($destXmlFile, $antFile);
|
|
|
|
|
+ shell_exec("cd /Library/Server/Web/Data/Sites/Default/SE/schema/WPS_Functions/default_db/CRM_PROCES_tree && ant -f build_CRM_PROCES_tree.xml default_db:PROCES_INIT:tree:dita -Duuid=relations-{$row['ID']}");
|
|
|
|
|
+ shell_exec("cd \"{$antDir}\" && /Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita -o pdf -i relations-{$row['ID']}.ditamap -f pdf");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if ($sqlArr) {
|
|
if ($sqlArr) {
|