Changeset 87:25dec6931f18 for build.xml
Legend:
- Unmodified
- Added
- Removed
-
build.xml
r82 r87 27 27 <property name="funkce" value="${šablona}/funkce/build/classes"/> 28 28 <property name="čára" value="----------------------------------------------------------------"/> 29 29 30 30 <property name="vstupníPřípona" value=".xml"/> 31 31 <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"> 37 36 <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"> 38 37 <param name="podporaZaostalýchProhlížečů" expression="false"/> … … 42 41 <classpath location="${funkce}"/> 43 42 <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"/> 45 44 </factory> 46 45 </xslt> 47 46 </target> 48 47 49 48 <target name="syntaxe" description="Vygeneruje CSS styl pro zvýrazňování syntaxe" depends="kompiluj-funkce"> 50 49 <xslt in="${vstup}/web.conf" out="${výstup}/css/syntaxe.css" style="${šablona}/syntaxe.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> … … 52 51 <classpath location="${funkce}"/> 53 52 <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"/> 55 54 </factory> 56 55 </xslt> 57 56 </target> 58 57 59 58 <target name="makra" description="Vygeneruje seznam maker podle souborů v příslušných složkách" depends="kompiluj-funkce"> 60 59 <xslt in="${vstup}/web.conf" out="${seznamMaker}" style="${šablona}/makra.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> … … 62 61 <classpath location="${funkce}"/> 63 62 <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"/> 65 64 </factory> 66 65 </xslt> 67 66 </target> 68 67 69 68 <target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml." depends="kompiluj-funkce"> 70 69 <!-- TODO: sloučit, zjednodušit, parametrizovat --> 71 70 72 71 <!-- Atom --> 73 72 <xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> … … 77 76 <classpath location="${funkce}"/> 78 77 <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"/> 80 79 </factory> 81 80 </xslt> 82 81 83 82 <!-- 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"> 85 84 <classpath location="/usr/share/java/saxonb-9.0.jar"/> 86 85 <classpath location="${funkce}"/> 87 86 <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"/> 89 88 </factory> 90 89 </xslt> 91 90 92 91 <!-- Sitemap.xml --> 93 92 <xslt in="${výstup}/atom.xml" out="${výstup}/sitemap.xml" style="${šablona}/sitemap.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> … … 95 94 <classpath location="${funkce}"/> 96 95 <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"/> 98 97 </factory> 99 98 </xslt> 100 99 101 100 <!-- Seznam stránek --> 102 101 <xslt in="${výstup}/atom.xml" out="${vstup}/.seznam.xml" style="${šablona}/seznam.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"> … … 104 103 <classpath location="${funkce}"/> 105 104 <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"/> 107 106 </factory> 108 107 </xslt> 109 108 110 109 </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ě."> 113 112 <mkdir dir="${funkce}"/> 114 113 <javac 115 114 srcdir="${šablona}/funkce/src" 116 destdir="${funkce}" 115 destdir="${funkce}" 117 116 includeAntRuntime="no"> 118 117 </javac> 119 118 </target> 120 119 121 120 <target name="statický-obsah" description="Kopíruje JS, CSS, obrázky atd."> 122 121 <copy todir="${výstup}"> … … 124 123 </copy> 125 124 </target> 126 125 127 126 <target name="čisti" description="Smaže vygenerovaný obsah."> 128 127 <delete includeemptydirs="true"> … … 132 131 </delete> 133 132 </target> 134 133 135 134 <target name="prohlédni" description="Otevře vygenerované stránky ve www prohlížeči."> 136 135 <exec executable="x-www-browser" os="Linux"> … … 144 143 </javadoc> 145 144 </target> 146 145 147 146 <target name="licence"> 148 147 <echo>${čára} … … 153 152 ${čára}</echo> 154 153 </target> 155 154 156 155 <target name="licence-gpl"> 157 156 <loadfile property="licence.txt" srcFile="licence/licence.txt"/> … … 163 162 <echo>${čára}</echo> 164 163 </target> 165 164 166 165 </project> 166