--- a/build.xml Sun Apr 03 02:39:06 2011 +0200
+++ b/build.xml Sun Apr 03 16:34:42 2011 +0200
@@ -7,19 +7,37 @@
<property name="temp" value="temp"/>
<property name="funkce" value="${šablona}/funkce/build/classes"/>
- <target name="generuj" description="Vygeneruje XHTML webové stránky.">
+ <target name="generuj" description="Vygeneruje kompletní web." depends="kompiluj-funkce,stránky,agregace">
+ </target>
+
+ <target name="stránky" description="Vygeneruje XHTML webové stránky.">
<xslt basedir="${vstup}" destdir="${výstup}" includes="*.xml" extension=".xhtml" style="${šablona}/stránka.xsl">
<classpath location="/usr/share/java/saxonb-9.0.jar"/>
- <classpath location="${funkce}"/>
-
- <factory name="net.sf.saxon.TransformerFactoryImpl">
+ <classpath location="${funkce}"/>
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
</factory>
-
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
</xslt>
</target>
+ <target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml">
+ <xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl">
+ <param name="konfigurák" expression="../vstup/web.conf"/>
+ <classpath location="/usr/share/java/saxonb-9.0.jar"/>
+ <classpath location="${funkce}"/>
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
+ <attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
+ </factory>
+ </xslt>
+ </target>
+
+ <target name="kompiluj-funkce" description="">
+ <mkdir dir="${funkce}"/>
+ <javac
+ srcdir="${šablona}/funkce/src"
+ destdir="${funkce}"
+ includeAntRuntime="no">
+ </javac>
+ </target>
+
</project>