forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrest-shbat/var skinlist2fetch.xsl
Date Thu, 02 Oct 2003 07:15:39 GMT
nicolaken    2003/10/02 00:15:39

  Modified:    src/resources/forrest-shbat/var skinlist2fetch.xsl
  Log:
  Make it not try to download unversioned skin when it finds the versioned one.
  
  Revision  Changes    Path
  1.5       +3 -3      xml-forrest/src/resources/forrest-shbat/var/skinlist2fetch.xsl
  
  Index: skinlist2fetch.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/var/skinlist2fetch.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- skinlist2fetch.xsl	2 Oct 2003 07:07:06 -0000	1.4
  +++ skinlist2fetch.xsl	2 Oct 2003 07:15:38 -0000	1.5
  @@ -17,11 +17,13 @@
                  <xsl:attribute name="src"><xsl:value-of select="skin[@name=$skin-name]/@url"
/><xsl:value-of select="$skin-name" />-<xsl:value-of select="$forrest-version"
/>.zip</xsl:attribute>
                  <xsl:attribute name="dest">${forrest.home}/context/skins/<xsl:value-of
select="$skin-name" />.zip</xsl:attribute>
               </get>
  +            <available property="versioned-skin.present">
  +               <xsl:attribute name="file">${forrest.home}/context/skins/<xsl:value-of
select="$skin-name" />.zip</xsl:attribute>
  +            </available>
            </target>
   
            <target name="fetch-unversioned-skin" unless="versioned-skin.present">
               <echo>Versioned skin unavailable, trying to get versionless skin...</echo>
  -
               <get verbose="true" usetimestamp="true" ignoreerrors="true">
                  <xsl:attribute name="src"><xsl:value-of select="skin[@name=$skin-name]/@url"
/><xsl:value-of select="$skin-name" />.zip</xsl:attribute>
                  <xsl:attribute name="dest">${forrest.home}/context/skins/<xsl:value-of
select="$skin-name" />.zip</xsl:attribute>
  @@ -32,7 +34,6 @@
               <available property="skin.present">
                  <xsl:attribute name="file">${forrest.home}/context/skins/<xsl:value-of
select="$skin-name" />.zip</xsl:attribute>
               </available>
  -
               <fail unless="skin.present">
                 Unable to download the 
                 "<xsl:value-of select="$skin-name" />" skin from 
  @@ -40,7 +41,6 @@
                 In case the reason is the network connection, you can try 
                 installing the package manually by placing the file in the 
                 skins directory.</fail>
  -
               <echo>Skin "<xsl:value-of select="$skin-name" />" correctly installed.</echo>
            </target>
         </project>
  
  
  

Mime
View raw message