Changeset 87:25dec6931f18 for build.xml

Show
Ignore:
Timestamp:
01/14/12 19:10:26 (12 years ago)
Author:
František Kučera <franta-hg@…>
Branch:
default
Message:

Lepší odsazení, tabulátory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • build.xml

    r82 r87  
    2727        <property name="funkce" value="${šablona}/funkce/build/classes"/> 
    2828        <property name="čára" value="----------------------------------------------------------------"/> 
    29          
     29 
    3030        <property name="vstupníPřípona" value=".xml"/> 
    3131        <property name="výstupníPřípona" value=".xhtml"/> 
    32          
    33         <target name="generuj" description="Vygeneruje kompletní web." depends="licence,agregace,stránky"> 
    34         </target> 
    35          
    36         <target name="stránky" description="Vygeneruje samotné XHTML webové stránky." depends="statický-obsah,syntaxe,kompiluj-funkce,makra">            
     32 
     33        <target name="generuj" description="Vygeneruje kompletní web." depends="licence,agregace,stránky"/> 
     34 
     35        <target name="stránky" description="Vygeneruje samotné XHTML webové stránky." depends="statický-obsah,syntaxe,kompiluj-funkce,makra"> 
    3736                <xslt basedir="${vstup}" destdir="${výstup}" includes="*${vstupníPřípona}" extension="${výstupníPřípona}" style="${šablona}/stránka.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> 
    3837                        <param name="podporaZaostalýchProhlížečů" expression="false"/> 
     
    4241                        <classpath location="${funkce}"/> 
    4342                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    44                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     43                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>    
    4544                        </factory> 
    4645                </xslt> 
    4746        </target> 
    48          
     47 
    4948        <target name="syntaxe" description="Vygeneruje CSS styl pro zvýrazňování syntaxe" depends="kompiluj-funkce"> 
    5049                <xslt in="${vstup}/web.conf" out="${výstup}/css/syntaxe.css" style="${šablona}/syntaxe.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> 
     
    5251                        <classpath location="${funkce}"/> 
    5352                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    54                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     53                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> 
    5554                        </factory> 
    5655                </xslt> 
    5756        </target> 
    58          
     57 
    5958        <target name="makra" description="Vygeneruje seznam maker podle souborů v příslušných složkách" depends="kompiluj-funkce"> 
    6059                <xslt in="${vstup}/web.conf" out="${seznamMaker}" style="${šablona}/makra.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> 
     
    6261                        <classpath location="${funkce}"/> 
    6362                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    64                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     63                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>    
    6564                        </factory> 
    6665                </xslt> 
    6766        </target> 
    68          
     67 
    6968        <target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml." depends="kompiluj-funkce"> 
    7069                <!-- TODO: sloučit, zjednodušit, parametrizovat --> 
    71          
     70 
    7271                <!-- Atom --> 
    7372                <xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> 
     
    7776                        <classpath location="${funkce}"/> 
    7877                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    79                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     78                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>    
    8079                        </factory> 
    8180                </xslt> 
    82                  
     81 
    8382                <!-- RSS -->  
    84                 <xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">                        
     83                <xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> 
    8584                        <classpath location="/usr/share/java/saxonb-9.0.jar"/> 
    8685                        <classpath location="${funkce}"/> 
    8786                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    88                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     87                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> 
    8988                        </factory> 
    9089                </xslt> 
    91                  
     90 
    9291                <!-- Sitemap.xml --> 
    9392                <xslt in="${výstup}/atom.xml" out="${výstup}/sitemap.xml" style="${šablona}/sitemap.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">                        
     
    9594                        <classpath location="${funkce}"/> 
    9695                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    97                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     96                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> 
    9897                        </factory> 
    9998                </xslt> 
    100                  
     99 
    101100                <!-- Seznam stránek -->  
    102101                <xslt in="${výstup}/atom.xml" out="${vstup}/.seznam.xml" style="${šablona}/seznam.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">                  
     
    104103                        <classpath location="${funkce}"/> 
    105104                        <factory name="net.sf.saxon.TransformerFactoryImpl"> 
    106                                 <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>                            
     105                                <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> 
    107106                        </factory> 
    108107                </xslt> 
    109                  
     108 
    110109        </target> 
    111          
    112         <target name="kompiluj-funkce" description="Přeloží funkce napsané v Javě.">             
     110 
     111        <target name="kompiluj-funkce" description="Přeloží funkce napsané v Javě."> 
    113112                <mkdir dir="${funkce}"/> 
    114113                <javac 
    115114                        srcdir="${šablona}/funkce/src" 
    116                         destdir="${funkce}"                      
     115                        destdir="${funkce}" 
    117116                        includeAntRuntime="no"> 
    118117                </javac> 
    119118        </target> 
    120          
     119 
    121120        <target name="statický-obsah" description="Kopíruje JS, CSS, obrázky atd."> 
    122121                <copy todir="${výstup}"> 
     
    124123                </copy> 
    125124        </target> 
    126          
     125 
    127126        <target name="čisti" description="Smaže vygenerovaný obsah."> 
    128127                <delete includeemptydirs="true"> 
     
    132131                </delete> 
    133132        </target> 
    134          
     133 
    135134        <target name="prohlédni" description="Otevře vygenerované stránky ve www prohlížeči."> 
    136135                <exec executable="x-www-browser" os="Linux"> 
     
    144143                </javadoc> 
    145144        </target> 
    146          
     145 
    147146        <target name="licence"> 
    148147                <echo>${čára} 
     
    153152${čára}</echo> 
    154153        </target> 
    155          
     154 
    156155        <target name="licence-gpl"> 
    157156                <loadfile property="licence.txt" srcFile="licence/licence.txt"/> 
     
    163162                <echo>${čára}</echo>  
    164163        </target> 
    165          
     164 
    166165</project> 
     166