build.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 13 Aug 2013 12:39:12 +0200
changeset 131 d47607999a8c
parent 130 94339837c42d
child 134 85c516f944a1
permissions -rw-r--r--
podpora zaostalých prohlížečů – konfigurovatelná v .properties místo v .xml
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
60
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     2
<!--
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     3
XML Web generátor – program na generování webových stránek
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     4
Copyright © 2012 František Kučera (frantovo.cz)
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     5
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     6
This program is free software: you can redistribute it and/or modify
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     7
it under the terms of the GNU General Public License as published by
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     8
the Free Software Foundation, either version 3 of the License, or
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
     9
(at your option) any later version.
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    10
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    11
This program is distributed in the hope that it will be useful,
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    14
GNU General Public License for more details.
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    15
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    16
You should have received a copy of the GNU General Public License
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    17
along with this program.  If not, see <http://www.gnu.org/licenses/>.
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    18
-->
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
<project name="xhtml-web" basedir="." default="generuj">
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    21
	<loadproperties srcfile="build.uživatelské.properties"/>
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    22
	<loadproperties srcfile="build.properties"/>
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    23
2
ab9099ff88fa vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    24
	<!-- Používané adresáře – např. zde můžete vstup a výstup nasměrovat do jiného verzovaného úložiště -->
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
	<property name="vstup" value="vstup"/>
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
	<property name="výstup" value="výstup"/>
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
	<property name="šablona" value="šablona"/>
51
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    28
	<property name="seznamMaker" value="${šablona}/.makra-seznam.xsl"/>
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
	<property name="temp" value="temp"/>
2
ab9099ff88fa vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    30
	<property name="funkce" value="${šablona}/funkce/build/classes"/>
60
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
    31
	<property name="čára" value="----------------------------------------------------------------"/>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    32
15
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    33
	<property name="vstupníPřípona" value=".xml"/>
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    34
	<property name="výstupníPřípona" value=".xhtml"/>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    35
130
94339837c42d ant: spouštění volitelného skriptu (připrav.sh) před generováním
František Kučera <franta-hg@frantovo.cz>
parents: 129
diff changeset
    36
	<target name="generuj" description="Vygeneruje kompletní web." depends="licence,_připrav,agregace,stránky"/>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    37
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    38
	<target name="stránky" description="Vygeneruje samotné XHTML webové stránky." depends="statický-obsah,syntaxe,kompiluj-funkce,makra">
20
29361e026fa3 Dočasný hack: kompatibilita s Antem verze 1.8.1, Bug 49271
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    39
		<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">
131
d47607999a8c podpora zaostalých prohlížečů – konfigurovatelná v .properties místo v .xml
František Kučera <franta-hg@frantovo.cz>
parents: 130
diff changeset
    40
			<param name="podporaZaostalýchProhlížečů" expression="${xml.zaostaleProhlizece}"/>
15
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    41
			<param name="vstupníPřípona" expression="${vstupníPřípona}"/>
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    42
			<param name="výstupníPřípona" expression="${výstupníPřípona}"/>
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    43
			<classpath location="${xslt.jar}"/>
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    44
			<classpath location="${funkce}"/>
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    45
			<factory name="net.sf.saxon.TransformerFactoryImpl">
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
    46
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
2
ab9099ff88fa vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    47
			</factory>
ab9099ff88fa vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    48
		</xslt>
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    50
31
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    51
	<target name="syntaxe" description="Vygeneruje CSS styl pro zvýrazňování syntaxe" depends="kompiluj-funkce">
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    52
		<xslt in="${vstup}/web.conf" out="${výstup}/css/syntaxe.css" style="${šablona}/syntaxe.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    53
			<classpath location="${xslt.jar}"/>
31
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    54
			<classpath location="${funkce}"/>
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    55
			<factory name="net.sf.saxon.TransformerFactoryImpl">
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    56
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
31
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    57
			</factory>
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    58
		</xslt>
da6ae32853cb Zvýrazňování syntaxe #12 – prakticky hotové.
František Kučera <franta-hg@frantovo.cz>
parents: 24
diff changeset
    59
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    60
51
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    61
	<target name="makra" description="Vygeneruje seznam maker podle souborů v příslušných složkách" depends="kompiluj-funkce">
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    62
		<xslt in="${vstup}/web.conf" out="${seznamMaker}" style="${šablona}/makra.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    63
			<classpath location="${xslt.jar}"/>
51
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    64
			<classpath location="${funkce}"/>
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    65
			<factory name="net.sf.saxon.TransformerFactoryImpl">
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
    66
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
51
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    67
			</factory>
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    68
		</xslt>
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
    69
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    70
22
65afc0483ef5 lepší závislosti antovských úloh
František Kučera <franta-hg@frantovo.cz>
parents: 20
diff changeset
    71
	<target name="agregace" description="Vytvoří agregované výstupy: RSS, Atom, Sitemap.xml." depends="kompiluj-funkce">
9
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    72
		<!-- TODO: sloučit, zjednodušit, parametrizovat -->
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    73
7
5b46493979c9 Atom – zjednodušení, #2
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    74
		<!-- Atom -->
20
29361e026fa3 Dočasný hack: kompatibilita s Antem verze 1.8.1, Bug 49271
František Kučera <franta-hg@frantovo.cz>
parents: 15
diff changeset
    75
		<xslt in="${vstup}/web.conf" out="${výstup}/atom.xml" style="${šablona}/atom.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
15
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    76
			<param name="vstupníPřípona" expression="${vstupníPřípona}"/>
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    77
			<param name="výstupníPřípona" expression="${výstupníPřípona}"/>
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    78
			<classpath location="${xslt.jar}"/>
9
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    79
			<classpath location="${funkce}"/>
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    80
			<factory name="net.sf.saxon.TransformerFactoryImpl">
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
    81
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
    82
			</factory>
7
5b46493979c9 Atom – zjednodušení, #2
František Kučera <franta-hg@frantovo.cz>
parents: 6
diff changeset
    83
		</xslt>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    84
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
    85
		<!-- RSS -->
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    86
		<xslt in="${výstup}/atom.xml" out="${výstup}/rss.xml" style="${šablona}/rss.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    87
			<classpath location="${xslt.jar}"/>
9
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    88
			<classpath location="${funkce}"/>
8
ad0ee12d13fd RSS agregace, #2
František Kučera <franta-hg@frantovo.cz>
parents: 7
diff changeset
    89
			<factory name="net.sf.saxon.TransformerFactoryImpl">
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    90
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
8
ad0ee12d13fd RSS agregace, #2
František Kučera <franta-hg@frantovo.cz>
parents: 7
diff changeset
    91
			</factory>
ad0ee12d13fd RSS agregace, #2
František Kučera <franta-hg@frantovo.cz>
parents: 7
diff changeset
    92
		</xslt>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    93
15
cfb2fc0ca242 Volitelná podpora zaostalých prohlížečů (MSIE).
František Kučera <franta-hg@frantovo.cz>
parents: 11
diff changeset
    94
		<!-- Sitemap.xml -->
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
    95
		<xslt in="${výstup}/atom.xml" out="${výstup}/sitemap.xml" style="${šablona}/sitemap.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
    96
			<classpath location="${xslt.jar}"/>
9
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    97
			<classpath location="${funkce}"/>
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    98
			<factory name="net.sf.saxon.TransformerFactoryImpl">
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
    99
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
9
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   100
			</factory>
71275159d985 Sitemap.xml agregace, vyřešeno #2
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
   101
		</xslt>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   102
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   103
		<!-- Seznam stránek -->
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   104
		<xslt in="${výstup}/atom.xml" out="${vstup}/.seznam.xml" style="${šablona}/seznam.xsl"  processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison">
123
c1999d6bc76a build.properties – cesta k XSLT JARu
František Kučera <franta-hg@frantovo.cz>
parents: 121
diff changeset
   105
			<classpath location="${xslt.jar}"/>
24
63e404f454e8 Seznam všech stránek: první verze, formou tabulky
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
   106
			<classpath location="${funkce}"/>
63e404f454e8 Seznam všech stránek: první verze, formou tabulky
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
   107
			<factory name="net.sf.saxon.TransformerFactoryImpl">
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   108
				<attribute name="http://saxon.sf.net/feature/allow-external-functions" value="true"/>
24
63e404f454e8 Seznam všech stránek: první verze, formou tabulky
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
   109
			</factory>
63e404f454e8 Seznam všech stránek: první verze, formou tabulky
František Kučera <franta-hg@frantovo.cz>
parents: 22
diff changeset
   110
		</xslt>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   111
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   112
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   113
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   114
	<target name="kompiluj-funkce" description="Přeloží funkce napsané v Javě.">
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   115
		<mkdir dir="${funkce}"/>
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   116
		<javac
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   117
			srcdir="${šablona}/funkce/src"
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   118
			destdir="${funkce}"
6
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   119
			includeAntRuntime="no">
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   120
		</javac>
801a8935caf7 Java funkce pro zjištění poslední úpravy souboru, Atom agregace, konfigurační soubor webu.
František Kučera <franta-hg@frantovo.cz>
parents: 4
diff changeset
   121
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   122
11
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   123
	<target name="statický-obsah" description="Kopíruje JS, CSS, obrázky atd.">
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   124
		<copy todir="${výstup}">
78
7e478bfa5694 Definice uživatelských maker nebudeme kopírovat do výstupu, drobnosti.
František Kučera <franta-hg@frantovo.cz>
parents: 64
diff changeset
   125
			<fileset dir="${vstup}" excludes="*.xml,makra/**,*.inc,web.conf"/>
11
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   126
		</copy>
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   127
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   128
11
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   129
	<target name="čisti" description="Smaže vygenerovaný obsah.">
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   130
		<delete includeemptydirs="true">
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   131
			<fileset dir="${výstup}" includes="**/*"/>
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   132
			<fileset dir="${funkce}" includes="**/*"/>
51
df1f942f7b69 Přesun maker do samostatných souborů #8 + automatické generování seznamu maker
František Kučera <franta-hg@frantovo.cz>
parents: 31
diff changeset
   133
			<fileset file="${seznamMaker}"/>
11
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   134
		</delete>
78a8dd1eeb2b statický obsah a úloha pro čištění
František Kučera <franta-hg@frantovo.cz>
parents: 10
diff changeset
   135
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   136
64
c069af21c4be Antovská úloha pro zobrazení výstupu ve www prohlížeči.
František Kučera <franta-hg@frantovo.cz>
parents: 60
diff changeset
   137
	<target name="prohlédni" description="Otevře vygenerované stránky ve www prohlížeči.">
c069af21c4be Antovská úloha pro zobrazení výstupu ve www prohlížeči.
František Kučera <franta-hg@frantovo.cz>
parents: 60
diff changeset
   138
		<exec executable="x-www-browser" os="Linux">
c069af21c4be Antovská úloha pro zobrazení výstupu ve www prohlížeči.
František Kučera <franta-hg@frantovo.cz>
parents: 60
diff changeset
   139
			<arg value="${výstup}/index${výstupníPřípona}"/>
c069af21c4be Antovská úloha pro zobrazení výstupu ve www prohlížeči.
František Kučera <franta-hg@frantovo.cz>
parents: 60
diff changeset
   140
		</exec>
c069af21c4be Antovská úloha pro zobrazení výstupu ve www prohlížeči.
František Kučera <franta-hg@frantovo.cz>
parents: 60
diff changeset
   141
	</target>
82
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   142
129
36c2e2bc2eb4 Ant: úloha pro publikování obsahu
František Kučera <franta-hg@frantovo.cz>
parents: 123
diff changeset
   143
	<target name="publikuj" description="Nahraje výstup na server pomocí uživatelského skriptu.">
36c2e2bc2eb4 Ant: úloha pro publikování obsahu
František Kučera <franta-hg@frantovo.cz>
parents: 123
diff changeset
   144
		<exec executable="skripty/_publikuj.sh" os="Linux"/>
36c2e2bc2eb4 Ant: úloha pro publikování obsahu
František Kučera <franta-hg@frantovo.cz>
parents: 123
diff changeset
   145
	</target>
130
94339837c42d ant: spouštění volitelného skriptu (připrav.sh) před generováním
František Kučera <franta-hg@frantovo.cz>
parents: 129
diff changeset
   146
	
94339837c42d ant: spouštění volitelného skriptu (připrav.sh) před generováním
František Kučera <franta-hg@frantovo.cz>
parents: 129
diff changeset
   147
	<target name="_připrav" description="Spustí volitelný skript před generováním.">
94339837c42d ant: spouštění volitelného skriptu (připrav.sh) před generováním
František Kučera <franta-hg@frantovo.cz>
parents: 129
diff changeset
   148
		<exec executable="skripty/_připrav.sh" os="Linux"/>
94339837c42d ant: spouštění volitelného skriptu (připrav.sh) před generováním
František Kučera <franta-hg@frantovo.cz>
parents: 129
diff changeset
   149
	</target>
129
36c2e2bc2eb4 Ant: úloha pro publikování obsahu
František Kučera <franta-hg@frantovo.cz>
parents: 123
diff changeset
   150
82
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   151
	<target name="dokumentace" description="Sestaví dokumentaci">
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   152
		<javadoc destdir="dokumentace/javadoc" linksource="true" windowtitle="XML Web generátor – javadoc">
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   153
			<fileset dir="šablona/funkce/src"/>
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   154
		</javadoc>
90a58fca78e5 Dokumentace: javadoc.
František Kučera <franta-hg@frantovo.cz>
parents: 78
diff changeset
   155
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   156
60
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   157
	<target name="licence">
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   158
		<echo>${čára}
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   159
XML Web generátor Copyright © 2012 František Kučera (frantovo.cz)
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   160
This program comes with ABSOLUTELY NO WARRANTY;
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   161
This is free software, and you are welcome to redistribute it
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   162
under certain conditions; type ‚ant licence-gpl‘ for details.
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   163
${čára}</echo>
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   164
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   165
60
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   166
	<target name="licence-gpl">
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   167
		<loadfile property="licence.txt" srcFile="licence/licence.txt"/>
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   168
		<loadfile property="gpl-3.0.txt" srcFile="licence/gpl-3.0.txt"/>
121
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   169
		<echo>${čára}</echo>
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   170
		<echo>${licence.txt}</echo>
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   171
		<echo>${čára}</echo>
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   172
		<echo>${gpl-3.0.txt}</echo>
1a32988c4fef odstranění mezer na koncích řádků
František Kučera <franta-hg@frantovo.cz>
parents: 87
diff changeset
   173
		<echo>${čára}</echo>
60
6e574058ef56 Licence: informace o licenci při spuštění programu.
František Kučera <franta-hg@frantovo.cz>
parents: 51
diff changeset
   174
	</target>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   175
1
a05c6f3cbc3e základ, první verze
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   176
</project>
87
25dec6931f18 Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents: 82
diff changeset
   177