Migliorata gestione jar sotto Windows 2008

git-svn-id: svn://10.65.10.50/branches/R_10_00@23008 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2014-10-27 08:26:51 +00:00
parent b4795aed72
commit 842cd46d90

View File

@ -1,6 +1,7 @@
#include <applicat.h> #include <applicat.h>
#include <automask.h> #include <automask.h>
#include <execp.h> #include <execp.h>
#include <golem.h>
#include <progind.h> #include <progind.h>
#include <utility.h> #include <utility.h>
@ -1283,10 +1284,17 @@ bool TDoc2Paf::genera_xml()
else else
cantread_box(tmp); cantread_box(tmp);
tmp = PABASE"/SiaggPACAMPO.jar"; tmp = PABASE"\\SiaggPACAMPO.jar";
const bool good = xvt_sys_goto_url(tmp, "run") != 0; tmp.make_absolute_path();
DIRECTORY old_dir; xvt_fsys_get_dir(&old_dir);
DIRECTORY new_dir; xvt_fsys_convert_str_to_dir(tmp.path(), &new_dir);
xvt_fsys_set_dir(&new_dir);
const bool good = goto_url(tmp);
xvt_sys_sleep(3000);
xvt_fsys_set_dir(&old_dir);
if (!good) if (!good)
cantread_box(tmp); error_box(FR("Impossibile eseguire Java -jar %s"), (const char*)tmp);
return good; return good;
} }