author | František Kučera <franta-hg@frantovo.cz> |
Sun, 03 Apr 2011 18:44:35 +0200 | |
changeset 9 | 71275159d985 |
parent 8 | ad0ee12d13fd |
child 10 | 4e70453a027f |
permissions | -rw-r--r-- |
franta-hg@1 | 1 |
<project name="xhtml-web" basedir="." default="generuj"> |
franta-hg@1 | 2 |
|
franta-hg@2 | 3 |
<!-- Používané adresáře – např. zde můžete vstup a výstup nasměrovat do jiného verzovaného úložiště --> |
franta-hg@1 | 4 |
<property name="vstup" value="vstup"/> |
franta-hg@1 | 5 |
<property name="výstup" value="výstup"/> |
franta-hg@1 | 6 |
<property name="šablona" value="šablona"/> |
franta-hg@1 | 7 |
<property name="temp" value="temp"/> |
franta-hg@2 | 8 |
<property name="funkce" value="${šablona}/funkce/build/classes"/> |
franta-hg@1 | 9 |
|
franta-hg@6 | 10 |
<target name="generuj" description="Vygeneruje kompletní web." depends="kompiluj-funkce,stránky,agregace"> |
franta-hg@6 | 11 |
</target> |
franta-hg@6 | 12 |
|
franta-hg@6 | 13 |
<target name="stránky" description="Vygeneruje XHTML webové stránky."> |
franta-hg@2 | 14 |
<xslt basedir="${vstup}" destdir="${výstup}" includes="*.xml" extension=".xhtml" style="${šablona}/stránka.xsl"> |
franta-hg@2 | 15 |
<classpath location="/usr/share/java/saxonb-9.0.jar"/> |
franta-hg@6 | 16 |
<classpath location="${funkce}"/> |
franta-hg@6 | 17 |
<factory name="net.sf.saxon.TransformerFactoryImpl"> |
franta-hg@4 | 18 |
<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> |
franta-hg@2 | 19 |
</factory> |
franta-hg@2 | 20 |
</xslt> |
franta-hg@1 | 21 |
</target> |
franta-hg@1 | 22 |
|
franta-hg@6 | 23 |
<target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml"> |
franta-hg@9 | 24 |
<!-- TODO: sloučit, zjednodušit, parametrizovat --> |
franta-hg@9 | 25 |
|
franta-hg@7 | 26 |
<!-- Atom --> |
franta-hg@6 | 27 |
<xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl"> |
franta-hg@6 | 28 |
<classpath location="/usr/share/java/saxonb-9.0.jar"/> |
franta-hg@9 | 29 |
<classpath location="${funkce}"/> |
franta-hg@6 | 30 |
<factory name="net.sf.saxon.TransformerFactoryImpl"> |
franta-hg@6 | 31 |
<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> |
franta-hg@6 | 32 |
</factory> |
franta-hg@7 | 33 |
</xslt> |
franta-hg@7 | 34 |
|
franta-hg@8 | 35 |
<!-- RSS --> |
franta-hg@8 | 36 |
<xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl"> |
franta-hg@8 | 37 |
<classpath location="/usr/share/java/saxonb-9.0.jar"/> |
franta-hg@9 | 38 |
<classpath location="${funkce}"/> |
franta-hg@8 | 39 |
<factory name="net.sf.saxon.TransformerFactoryImpl"> |
franta-hg@8 | 40 |
<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> |
franta-hg@8 | 41 |
</factory> |
franta-hg@8 | 42 |
</xslt> |
franta-hg@8 | 43 |
|
franta-hg@8 | 44 |
<!-- TODO: Sitemap.xml --> |
franta-hg@9 | 45 |
<xslt in="${výstup}/atom.xml" out="${výstup}/sitemap.xml" style="${šablona}/sitemap.xsl"> |
franta-hg@9 | 46 |
<classpath location="/usr/share/java/saxonb-9.0.jar"/> |
franta-hg@9 | 47 |
<classpath location="${funkce}"/> |
franta-hg@9 | 48 |
<factory name="net.sf.saxon.TransformerFactoryImpl"> |
franta-hg@9 | 49 |
<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/> |
franta-hg@9 | 50 |
</factory> |
franta-hg@9 | 51 |
</xslt> |
franta-hg@8 | 52 |
|
franta-hg@6 | 53 |
</target> |
franta-hg@6 | 54 |
|
franta-hg@6 | 55 |
<target name="kompiluj-funkce" description=""> |
franta-hg@6 | 56 |
<mkdir dir="${funkce}"/> |
franta-hg@6 | 57 |
<javac |
franta-hg@6 | 58 |
srcdir="${šablona}/funkce/src" |
franta-hg@6 | 59 |
destdir="${funkce}" |
franta-hg@6 | 60 |
includeAntRuntime="no"> |
franta-hg@6 | 61 |
</javac> |
franta-hg@6 | 62 |
</target> |
franta-hg@6 | 63 |
|
franta-hg@1 | 64 |
</project> |