build.xml
changeset 6 801a8935caf7
parent 4 1bb39595a51c
child 7 5b46493979c9
     1.1 --- a/build.xml	Sun Apr 03 02:39:06 2011 +0200
     1.2 +++ b/build.xml	Sun Apr 03 16:34:42 2011 +0200
     1.3 @@ -7,19 +7,37 @@
     1.4  	<property name="temp" value="temp"/>
     1.5  	<property name="funkce" value="${šablona}/funkce/build/classes"/>
     1.6  	
     1.7 -	<target name="generuj" description="Vygeneruje XHTML webové stránky.">		
     1.8 +	<target	name="generuj" description="Vygeneruje kompletní web." depends="kompiluj-funkce,stránky,agregace">
     1.9 +	</target>
    1.10 +	
    1.11 +	<target name="stránky" description="Vygeneruje XHTML webové stránky.">		
    1.12  		<xslt basedir="${vstup}" destdir="${výstup}" includes="*.xml" extension=".xhtml" style="${šablona}/stránka.xsl">
    1.13  			<classpath location="/usr/share/java/saxonb-9.0.jar"/>
    1.14 -            <classpath location="${funkce}"/>
    1.15 -			
    1.16 -            <factory name="net.sf.saxon.TransformerFactoryImpl">
    1.17 +			<classpath location="${funkce}"/>
    1.18 +			<factory name="net.sf.saxon.TransformerFactoryImpl">
    1.19  				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>				
    1.20  			</factory>
    1.21 -			
    1.22 -			<sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
    1.23 -			<sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    1.24 -			<sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>			
    1.25  		</xslt>
    1.26  	</target>
    1.27  	
    1.28 +	<target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml">
    1.29 +		<xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl">
    1.30 +			<param name="konfigurák" expression="../vstup/web.conf"/>
    1.31 +			<classpath location="/usr/share/java/saxonb-9.0.jar"/>
    1.32 +			<classpath location="${funkce}"/>			
    1.33 +			<factory name="net.sf.saxon.TransformerFactoryImpl">
    1.34 +				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>				
    1.35 +			</factory>
    1.36 +		</xslt>	
    1.37 +	</target>
    1.38 +	
    1.39 +	<target name="kompiluj-funkce" description="">		
    1.40 +		<mkdir dir="${funkce}"/>
    1.41 +		<javac
    1.42 +			srcdir="${šablona}/funkce/src"
    1.43 +			destdir="${funkce}"			
    1.44 +			includeAntRuntime="no">
    1.45 +		</javac>
    1.46 +	</target>
    1.47 +	
    1.48  </project>