Changeset 7469
- Timestamp:
- 11/23/06 19:47:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_Builder/com/scenari/m/builder/gen/HModelGenerator.java
r7468 r7469 74 74 import com.scenari.m.co.agent.IWADialog; 75 75 import com.scenari.m.co.agent.IWAgent; 76 import com.scenari.m.co.agent.IWAgentComputor; 76 77 import com.scenari.m.co.agent.IWAgentLinker; 77 import com.scenari.m.co.agent.IWAgentComputor;78 78 import com.scenari.m.co.dialog.IHDialog; 79 79 import com.scenari.m.co.donnee.HADonneeMgr; … … 103 103 import com.scenari.s.fw.log.IHLogMessage; 104 104 import com.scenari.s.fw.util.xml.HXmlWriterIO; 105 import com.scenari.s.fw.util.xml.IHXmlWriter;106 105 import com.scenari.s.fw.utils.HPoolBuffer; 107 106 import com.scenari.s.fw.utils.HUrl; … … 129 128 /** Path vers le fichier application.ini de XulRunner. */ 130 129 public static String sTestPathAppIni = null; 131 132 /** @depracted Utile pour al version Gecko1.7 (avant XulRunner) */133 public static String sTestPathDataTransfert = "{user.home}/Application Data/SCENARIbuilder/scTestDataTransfert.xml";134 130 135 131 public static String sTestUnivCode = "test"; … … 1556 1552 1557 1553 fPhase = PHASE_DEPLOY; 1558 // Génération du fichier de transfert de données 1559 if (sTestPathAppIni != null) { 1560 // Nouvelle gestion XulRunner 1561 File vRoot = new File(WDonneeFixeSystemProps.hReplace(sTestPathApp)); 1562 File vExe = new File(vRoot, sTestNameApp); 1563 1564 String[] vArgs = { vExe.getCanonicalPath(), sTestPathAppIni, "-chromeCode", fChromeCode, "-chromeContentUrl", HUrl.hEncode(new File(fFolderEsContent.hGetUrlFileFormat()).toURL().toExternalForm(), HUrl.URLENCODING_UTF8), "-wspCode", vWspCode, 1565 "-appliPath", new File(vRoot, sTestPathAppIni).getParentFile().getCanonicalPath(), "-contentLocale", sTestLocale, "-UILocale", sTestLocale }; 1566 Runtime.getRuntime().exec(vArgs, null, vRoot); 1567 1568 } else { 1569 // Ancienne Gestion Gecko 1.7 à virer. 1570 File vTransfert = new File(WDonneeFixeSystemProps.hReplace(sTestPathDataTransfert)); 1571 IHXmlWriter vWriter = new HXmlWriterIO(new OutputStreamWriter(new FileOutputStream(vTransfert), "UTF-8")); 1572 try { 1573 vWriter.hWriteHeaderXml("UTF-8"); 1574 vWriter.hWriteStartTag("launchTest"); 1575 vWriter.hWriteAttribut("chromeCode", fChromeCode); 1576 vWriter.hWriteAttribut("chromeContentUrl", new File(fFolderEsContent.hGetUrlFileFormat()).toURL().toExternalForm()); 1577 vWriter.hWriteAttribut("wspCode", vWspCode); 1578 // vWriter.hWriteAttribut("serverUrl", ""); 1579 vWriter.hWriteEndEmptyTag(); 1580 } finally { 1581 vWriter.hClose(); 1582 } 1583 1584 try { 1585 File vRoot = new File(WDonneeFixeSystemProps.hReplace(sTestPathApp)); 1586 File vExe = new File(vRoot, sTestNameApp); 1587 String[] vArgs = { vExe.getCanonicalPath(), "-datapath", vTransfert.getAbsolutePath() }; 1588 Runtime.getRuntime().exec(vArgs, null, vRoot); 1589 // HLogMgr.hPublishTrace("exitValue=" + vProcess.exitValue()); 1590 } catch (Exception e) { 1591 HLogMgr.hPublishException(e, "Echec au lancement de SCENARI test : " + sTestPathApp + "/" + sTestNameApp); 1592 } 1593 } 1554 File vRoot = new File(WDonneeFixeSystemProps.hReplace(sTestPathApp)); 1555 File vExe = new File(vRoot, sTestNameApp); 1556 1557 String[] vArgs = { vExe.getCanonicalPath(), sTestPathAppIni, "-chromeCode", fChromeCode, "-chromeContentUrl", HUrl.hEncode(new File(fFolderEsContent.hGetUrlFileFormat()).toURL().toExternalForm(), HUrl.URLENCODING_UTF8), "-wspCode", vWspCode, 1558 "-appliPath", new File(vRoot, sTestPathAppIni).getParentFile().getCanonicalPath(), "-contentLocale", sTestLocale, "-UILocale", sTestLocale }; 1559 Runtime.getRuntime().exec(vArgs, null, vRoot); 1594 1560 1595 1561 }
Note: See TracChangeset
for help on using the changeset viewer.