Ignore:
Timestamp:
11/23/06 19:47:05 (6 years ago)
Author:
sys
Message:

Suppr ancienne gestion lancement scTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_Builder/com/scenari/m/builder/gen/HModelGenerator.java

    r7468 r7469  
    7474import com.scenari.m.co.agent.IWADialog; 
    7575import com.scenari.m.co.agent.IWAgent; 
     76import com.scenari.m.co.agent.IWAgentComputor; 
    7677import com.scenari.m.co.agent.IWAgentLinker; 
    77 import com.scenari.m.co.agent.IWAgentComputor; 
    7878import com.scenari.m.co.dialog.IHDialog; 
    7979import com.scenari.m.co.donnee.HADonneeMgr; 
     
    103103import com.scenari.s.fw.log.IHLogMessage; 
    104104import com.scenari.s.fw.util.xml.HXmlWriterIO; 
    105 import com.scenari.s.fw.util.xml.IHXmlWriter; 
    106105import com.scenari.s.fw.utils.HPoolBuffer; 
    107106import com.scenari.s.fw.utils.HUrl; 
     
    129128        /** Path vers le fichier application.ini de XulRunner. */ 
    130129        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"; 
    134130 
    135131        public static String sTestUnivCode = "test"; 
     
    15561552 
    15571553                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); 
    15941560 
    15951561        } 
Note: See TracChangeset for help on using the changeset viewer.