|
|
@@ -120,6 +120,7 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
|
|
|
$webRootUrl = Request::getPathUri() . "schema/ant-url_action/{$path}";// TODO: security - only for test
|
|
|
$outputFunctionUrl = $this->getLink('output') . "&path={$path}&file=";
|
|
|
+ $antFunctionUrl = $this->getLink('ant') . "&path={$path}&file={$file}&template={$template}&typeName={$typeName}&primaryKey={$primaryKey}&primaryKeyField={$pkField}"; //do confirmacji potrzebne - wzglednie przetwarzac z tresci output URL_TASK - ale potrzebne parametry analogiczne aby chodzily
|
|
|
DBG::log([ 'msg'=>'$webRootUrl', '$webRootUrl'=>$webRootUrl]);
|
|
|
DBG::log([ 'msg'=>'$outputFunctionUrl', '$outputFunctionUrl'=>$outputFunctionUrl]);
|
|
|
$testUrl = Request::getPathUri() . "wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&TYPENAME={$typeName}&SRSNAME=EPSG:3003&featureID={$objectName}.{$primaryKey}";// &REQUEST=GetFeature
|
|
|
@@ -130,6 +131,7 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
// $cmd = "{$this->pathUrlActions}{$path}/do_build.sh";
|
|
|
$cmd = "cd {$this->pathUrlActions}{$path} && ant -S";
|
|
|
$cmd .= " -DoutputFunctionUrl='{$outputFunctionUrl}'";
|
|
|
+ $cmd .= " -DantFunctionUrl='{$antFunctionUrl}'";
|
|
|
$cmd .= " -DwebRootUrl='{$webRootUrl}'";
|
|
|
// $cmd .= " -Durl='{$testUrl}'"; nie mozna tego uzywac, bo nadpisuje property w funkcji build_get_wfs.xml
|
|
|
$cmd .= " -DpasswordBase64Basic=\"{$cryptedPass}\"";
|
|
|
@@ -137,6 +139,7 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
|
|
|
$cmd .= " -Dphp_session_id=\"" . session_id() . "\"";
|
|
|
$cmd .= " -Dxpath={$pkField}";
|
|
|
$cmd .= " -Dxpath_value={$primaryKey}";
|
|
|
+ $cmd .= " -Dtemplate={$template}";
|
|
|
$cmd .= " -Dapi_url=".Request::getPathUri()."wfs-data.php"; //potrzebuje ten parametr do dzialania w AMS itp
|
|
|
$cmd .= " -DtypeName=\"{$typeName}\"";
|
|
|
if ($template) $cmd .= " {$template} ";
|