Changeset 8838
- Timestamp:
- 03/01/07 17:16:05 (5 years ago)
- Location:
- trunk/Wsp_Modeling
- Files:
-
- 4 edited
-
es/content/genDeploy/sendServerGenDeploy/xml.xed.xml (modified) (4 diffs)
-
spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/bsRoot.xml.xsl (modified) (1 diff)
-
spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/build.xml (modified) (10 diffs)
-
spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/show.xsl.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/es/content/genDeploy/sendServerGenDeploy/xml.xed.xml
r7714 r8838 45 45 46 46 <se:template se:id="baseElementAtts"> 47 <attribute se: bind="attribute" se:name="name" se:mandat="false">47 <attribute se:name="name" se:bind="attribute" se:mandat="false"> 48 48 <wordsInput notnull="true" trim="true"/> 49 49 </attribute> 50 <attribute se: bind="attribute" se:name="defaultValue" se:mandat="false">50 <attribute se:name="defaultValue" se:bind="attribute" se:mandat="false"> 51 51 <wordsInput notnull="true" trim="true"/> 52 52 </attribute> 53 <attribute se: bind="attribute" se:name="description" se:mandat="false">53 <attribute se:name="description" se:bind="attribute" se:mandat="false"> 54 54 <wordsInput notnull="true" trim="true"/> 55 55 </attribute> 56 <attribute se: bind="attribute" se:name="writable" se:mandat="false" se:defaultvalue="true" tooltiptext="Valeur modifiable par l'auteur">56 <attribute se:name="writable" se:bind="attribute" se:mandat="false" se:defaultvalue="true" tooltiptext="Valeur modifiable par l'auteur"> 57 57 <choiceInput> 58 58 <ciItem label="true"/> … … 62 62 </se:template> 63 63 64 <element se: bind="element" se:id="sm:url" se:name="sm:url" se:card="1" tooltipTag="URL d'accés au serveur de publication">64 <element se:id="sm:url" se:bind="element" se:name="sm:url" se:card="1" tooltipTag="URL d'accés au serveur de publication"> 65 65 <atts> 66 66 <se:ref se:refid="baseElementAtts"/> 67 67 </atts> 68 68 </element> 69 <element se: bind="element" se:id="sm:basedir" se:name="sm:basedir" se:card="1" tooltipTag="Répertoire principal dans lequel sera exportée la génération">69 <element se:id="sm:basedir" se:bind="element" se:name="sm:basedir" se:card="1" tooltipTag="Répertoire principal dans lequel sera exportée la génération"> 70 70 <atts> 71 71 <se:ref se:refid="baseElementAtts"/> 72 72 </atts> 73 73 </element> 74 <element se: bind="element" se:id="sm:login" se:name="sm:login" se:card="1" tooltipTag="Compte utilisateur donnant le droit d'accés en écriture sur le serveur">74 <element se:id="sm:login" se:bind="element" se:name="sm:login" se:card="1" tooltipTag="Compte utilisateur donnant le droit d'accés en écriture sur le serveur"> 75 75 <atts> 76 76 <se:ref se:refid="baseElementAtts"/> 77 77 </atts> 78 78 </element> 79 <element se: bind="element" se:id="sm:password" se:name="sm:password" se:card="1" tooltipTag="Mot de passe utilisateur">79 <element se:id="sm:password" se:bind="element" se:name="sm:password" se:card="1" tooltipTag="Mot de passe utilisateur"> 80 80 <atts> 81 81 <se:ref se:refid="baseElementAtts"/> … … 85 85 86 86 <xmlview se:bind="document"> 87 <element insert="collapsed" se:bind="element" se:name="sm:sendServerGenDeploy" se:declareNs="sc sm">87 <element se:name="sm:sendServerGenDeploy" insert="collapsed" se:bind="element" se:declareNs="sc sm"> 88 88 <atts> 89 <attribute se: bind="attribute" se:name="code" se:mandat="true">89 <attribute se:name="code" se:bind="attribute" se:mandat="true"> 90 90 <wordsInput notnull="true" trim="true" filterRegExp="^[a-zA-Z0-9]+$"/> 91 91 </attribute> 92 <attribute se: bind="attribute" se:name="name" se:mandat="true">92 <attribute se:name="name" se:bind="attribute" se:mandat="true"> 93 93 <wordsInput notnull="true" trim="true"/> 94 94 </attribute> 95 95 </atts> 96 96 <childs> 97 <element se: bind="element" se:name="sm:protocol" se:card="1" tooltipTag="Choix du protocole de communication avec le serveur">97 <element se:name="sm:protocol" se:bind="element" se:card="1" tooltipTag="Choix du protocole de communication avec le serveur"> 98 98 <childs> 99 <alternative se:bind="choice">100 <element se: bind="element" se:name="sm:ftp" tooltipTag="Publication des contenus via le protocole FTP" se:card="?" forcefilled="true">99 <alternativeAlone se:bind="choice"> 100 <element se:name="sm:ftp" se:bind="element" tooltipTag="Publication des contenus via le protocole FTP" se:card="?" forcefilled="true"> 101 101 <childs> 102 102 <se:ref se:refid="sm:url"/> … … 107 107 </element> 108 108 <!--<element se:bind="element" se:name="sm:webDavDeploy" tooltipTag="Publication des contenus via le protocole WebDav" se:card="?" forcefilled="true" se:show="ifExist"/>--> 109 </alternative >109 </alternativeAlone> 110 110 </childs> 111 111 </element> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/bsRoot.xml.xsl
r8532 r8838 71 71 <!-- paramétrage FTP --> 72 72 <xsl:if test="sm:protocol/sm:ftp"> 73 <table style=" margin-left:10%;width:90%;">73 <table style="width:100%;"> 74 74 <tr> 75 75 <td><xsl:if test="sm:protocol/*/sm:url/@writable='true'"><inputText onblur="saveChanges();" agent="//server.url"/></xsl:if></td> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/build.xml
r8532 r8838 20 20 </script> 21 21 22 <concat destfile="${vReportFile}"><![CDATA[<p>Export mode : ${mode}</p>]]></concat> 23 <concat destfile="${vReportFile}" append="true"><![CDATA[<p>Exported at : ${vTimestamp}</p>]]></concat> 22 <concat destfile="${vReportFile}"><![CDATA[<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Rapport d'export</title>]]></concat> 23 <concat destfile="${vReportFile}" append="true"><![CDATA[</head><style>html{font-family:sans-serif; font-size:10pt;} p{margin:1px 0px;} h1,h2,h3,h4{color:navy; margin:1px 0px;} h4{margin-top:5px;} .paramVal{color:gray;} .error{color:red;font-size:1.2em;}</style><body>]]></concat> 24 <concat destfile="${vReportFile}" append="true"><![CDATA[<h1>Rapport d'export</h1><h2>Paramètres:</h2>]]></concat> 25 <concat destfile="${vReportFile}" append="true"><![CDATA[<h3>Serveur : <span class="paramVal">${server.url}</span></h3>]]></concat> 26 <concat destfile="${vReportFile}" append="true"><![CDATA[<h3>Répertoire principal : <span class="paramVal">${server.basedir}</span></h3>]]></concat> 27 <concat destfile="${vReportFile}" append="true"><![CDATA[<h3>Compte utilisateur : <span class="paramVal">${server.user}</span></h3>]]></concat> 28 <concat destfile="${vReportFile}" append="true"><![CDATA[<h3>Mode d'éxport : <span class="paramVal">${mode}</span></h3>]]></concat> 29 <concat destfile="${vReportFile}" append="true"><![CDATA[<br/><p>Exporté le : ${vTimestamp}</p><hr/>]]></concat> 24 30 25 31 <condition property="export.mode.update"><equals arg1="${mode}" arg2="update"/></condition> … … 37 43 <contains string="${export.error}" substring="Could not login to FTP server" /> 38 44 <then> 39 <property name="export.error.msg" value=" Compte utilisateur et/ou mot de passe incorrect(s)"/>45 <property name="export.error.msg" value="URL du serveur FTP vide ou compte utilisateur et/ou mot de passe incorrect(s)"/> 40 46 </then> 41 47 <elseif> 42 <contains string="${export.error}" substring=" could not change remote directory" />48 <contains string="${export.error}" substring="UnknownHostException" /> 43 49 <then> 44 <property name="export.error.msg" value=" Veuillez spécifier un répertoire principal correct"/>50 <property name="export.error.msg" value="URL du serveur FTP incorrect (Unknown Host)"/> 45 51 </then> 46 52 </elseif> 53 <elseif> 54 <contains string="${export.error}" substring="could not change remote directory" /> 55 <then> 56 <property name="export.error.msg" value="Veuillez spécifier un répertoire principal correct"/> 57 </then> 58 </elseif> 47 59 <elseif> 48 60 <contains string="${export.error}" substring="Connection timed out" /> … … 56 68 </if> 57 69 58 <concat destfile="${vReportFile}" append="true"><![CDATA[ 59 <div style="color:red;font-size:1.2em;"> 60 <div style="font-weight:bold;">Erreur de transfert FTP</div> 61 <div>${export.error.msg}</div> 62 </div> 63 ]]></concat> 70 <concat destfile="${vReportFile}" append="true"><![CDATA[<div class="error"><div style="font-weight:bold;">Erreur de transfert FTP</div>${export.error.msg}</div>]]></concat> 64 71 <throw/> 65 72 </catch> 73 <finally> 74 <concat destfile="${vReportFile}" append="true"><![CDATA[<hr/>Fin de l'export</body></html>]]></concat> 75 </finally> 66 76 </trycatch> 67 77 </target> … … 84 94 <map from="${vOutDataRep}${file.separator}" to=""/> 85 95 </pathconvert> 86 <pathconvert targetos="unix" pathsep=" ," property="site.files.modify.showFileList" refid="site.files.modify" setonempty="true">96 <pathconvert targetos="unix" pathsep="<br/>" property="site.files.modify.showFileList" refid="site.files.modify" setonempty="true"> 87 97 <map from="${vOutDataRep}${file.separator}" to=""/> 88 98 </pathconvert> … … 94 104 <map from="${vOutDataRep}${file.separator}" to=""/> 95 105 </pathconvert> 96 <pathconvert targetos="unix" pathsep=" ," property="site.files.added.showFileList" refid="site.files.added" setonempty="true">106 <pathconvert targetos="unix" pathsep="<br/>" property="site.files.added.showFileList" refid="site.files.added" setonempty="true"> 97 107 <map from="${vOutDataRep}${file.separator}" to=""/> 98 108 </pathconvert> … … 104 114 <map from="${vOutDataRep}${file.separator}" to=""/> 105 115 </pathconvert> 106 <pathconvert targetos="unix" pathsep=" ," property="site.files.deleted.showFileList" refid="site.files.deleted" setonempty="true">116 <pathconvert targetos="unix" pathsep="<br/>" property="site.files.deleted.showFileList" refid="site.files.deleted" setonempty="true"> 107 117 <map from="${vOutDataRep}${file.separator}" to=""/> 108 118 </pathconvert> … … 114 124 <map from="${vOutDataRep}${file.separator}" to=""/> 115 125 </pathconvert> 116 <pathconvert targetos="unix" pathsep=" ," property="site.rep.deleted.showFileList" refid="site.rep.deleted" setonempty="true">126 <pathconvert targetos="unix" pathsep="<br/>" property="site.rep.deleted.showFileList" refid="site.rep.deleted" setonempty="true"> 117 127 <map from="${vOutDataRep}${file.separator}" to=""/> 118 128 </pathconvert> … … 120 130 <!-- Actions FTP --> 121 131 <!-- création du répertoire principal (indispensable si il n'existe pas) --> 122 <concat destfile="${vReportFile}" append="true"><![CDATA[< p>- Création du répertoire :${server.basedir}</p>]]></concat>132 <concat destfile="${vReportFile}" append="true"><![CDATA[<h4>- Création du répertoire :</h4><p>${server.basedir}</p>]]></concat> 123 133 <ftp retriesAllowed="${vRetriesAllowed}" action="mkdir" remotedir="${server.basedir}" server="${server.url}" userid="${server.user}" password="${server.password}"/> 124 134 <!-- export des fichiers modifiés --> 125 <concat destfile="${vReportFile}" append="true"><![CDATA[< p>- Export des fichiers modifiés :${site.files.modify.showFileList}</p>]]></concat>126 <concat destfile="${vReportFile}" append="true"><![CDATA[< p>- Export des fichiers ajoutés :${site.files.added.showFileList}</p>]]></concat>135 <concat destfile="${vReportFile}" append="true"><![CDATA[<h4>- Export des fichiers modifiés :</h4><p>${site.files.modify.showFileList}</p>]]></concat> 136 <concat destfile="${vReportFile}" append="true"><![CDATA[<h4>- Export des fichiers ajoutés :</h4><p>${site.files.added.showFileList}</p>]]></concat> 127 137 <ftp retriesAllowed="${vRetriesAllowed}" binary="true" action="send" remotedir="${server.basedir}" server="${server.url}" userid="${server.user}" password="${server.password}"> 128 138 <fileset refid="site.files.modify"/> … … 131 141 132 142 <!-- suppression des fichiers obsolètes --> 133 <concat destfile="${vReportFile}" append="true"><![CDATA[< p>- Suppression des fichiers :${site.files.deleted.showFileList}</p>]]></concat>143 <concat destfile="${vReportFile}" append="true"><![CDATA[<h4>- Suppression des fichiers :</h4><p>${site.files.deleted.showFileList}</p>]]></concat> 134 144 <!-- NOTE : les fichiers possédant un espace ne sont pas supprimés... pb avec includes --> 135 145 <ftp skipfailedtransfers="true" retriesAllowed="${vRetriesAllowed}" action="delete" remotedir="${server.basedir}" server="${server.url}" userid="${server.user}" password="${server.password}"> … … 138 148 139 149 <!-- suppression des répertoires obsolètes --> 140 <concat destfile="${vReportFile}" append="true"><![CDATA[< p>- Suppression des répertoires :${site.rep.deleted.showFileList}</p>]]></concat>150 <concat destfile="${vReportFile}" append="true"><![CDATA[<h4>- Suppression des répertoires :</h4><p>${site.rep.deleted.showFileList}</p>]]></concat> 141 151 <ftp skipfailedtransfers="true" retriesAllowed="${vRetriesAllowed}" action="rmdir" remotedir="${server.basedir}" server="${server.url}" userid="${server.user}" password="${server.password}"> 142 152 <fileset includes="${site.rep.deleted.fileList}"/> -
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_sendServerGenDeploy/show.xsl.xml
r8604 r8838 3 3 <xsl:param name="ancestorGenCd"/> 4 4 <xsl:template match="sc:support"> 5 <vbox class="frm " cdgen="{sc:gen/@code}" status="{sc:gen/@status}" working="{count(sc:gen[@status='working'])}">5 <vbox class="frmOpt" cdgen="{sc:gen/@code}" status="{sc:gen/@status}" working="{count(sc:gen[@status='working'])}"> 6 6 <vbox align="start" > 7 7 <xsl:apply-templates select="sc:gen" mode="title"/> 8 8 </vbox> 9 9 <hbox><image class="imGen" collapsed="true"/></hbox> 10 <vbox flex="1" pathAgentPage="/@@/paramsPage" hideIfWorking="true" hideToolbar="true" uriSubInst="{@uriSubInst}" actionOnLoad="EditInst" style="-moz-binding: url(chrome://scenaricms/content/widgets/sctab/paramgen/sctabparamgen.xbl.xml#paramgenbox); height:150px;"/>10 <vbox flex="1" pathAgentPage="/@@/paramsPage" hideIfWorking="true" hideToolbar="true" uriSubInst="{@uriSubInst}" actionOnLoad="EditInst" style="-moz-binding: url(chrome://scenaricms/content/widgets/sctab/paramgen/sctabparamgen.xbl.xml#paramgenbox); min-height:150px;"/> 11 11 <vbox align="start"> 12 12 <xsl:apply-templates select="sc:gen" mode="actions"/>
Note: See TracChangeset
for help on using the changeset viewer.