]> source.dussan.org Git - vaadin-framework.git/commitdiff
svn changeset:602/svn branch:toolkit
authorJani Laakso <jani.laakso@itmill.com>
Fri, 9 Feb 2007 12:29:36 +0000 (12:29 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Fri, 9 Feb 2007 12:29:36 +0000 (12:29 +0000)
build/build.xml
build/html-style.properties

index 81a5c396ca84db66af9b776f89b3e106310bed1a..dc1c67ebff1fa4f98b84c7d8048c2ac8695230c5 100644 (file)
        </target>
 
        <!-- Themes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-       <target name="themes" depends="copy-themes-to-lib" />
-       <!-- TODO -->
-       <!--    <target name="themes" depends="copy-themes-to-lib,themes-optimize-obfuscate" />-->
+       <target name="themes" depends="copy-themes-to-lib,themes-optimize-obfuscate" />
 
        <target name="copy-themes-to-lib" depends="init">
                <copy todir="${output-dir}/lib/themes">
                        </path>
                        <sequential>
                                <echo>@{file}</echo>
-                               <!-- <replaceregexp file="@{file}" match="foo" replace="x1" byline="true" /> -->
-                               <!-- TODO: ERROR: for some reason this does not work on Windows platform -->
+                               <!-- TODO: ERROR: for some reason this does not work on Windows platform, please fix! -->
                                <java dir="${output-dir}/lib/themes" jar="build/lib/custom_rhino.jar" fork="true" failonerror="true" maxmemory="64m" output="@{file}">
                                        <arg value="-c" />
                                        <arg value="@{file}" />
        <target name="demo" depends="libs,compile-java,theme-jar">
                <echo>Building demo</echo>
                <java2html srcdir="build/result/src/${toolkit-package}/demo" destdir="build/result/src/${toolkit-package}/demo" includes="**/*.java" style="eclipse" showLineNumbers="true" showFileName="true" showTableBorder="false" />
-               <!--            <copy todir="${output-dir}/lib/themes">
-                       <fileset dir="${output-dir}/lib">
-                               <include name="${demo-themes-jar-name}" />
+               <!-- have to use "temp" dir for some reason here. Overwrite does not work, at least on Linux -->
+               <copy todir="build/result/srcTemp" overwrite="true">
+                       <filterchain>
+                               <expandproperties />
+                               <replacetokens begintoken="&lt;" endtoken=">">
+                                       <token key="body" value="${html.body.tag}${html.body.start1}${product-name}${html.body.start2}" />
+                                       <token key="/body" value="${html.body.end}${html.body.endtag}" />
+                                       <token key="head" value="${html.head.tag}${html.head.style}" />
+                               </replacetokens>
+                       </filterchain>
+                       <fileset dir="build/result/src">
                                <exclude name="**/.svn" />
+                               <include name="**/*.html" />
                        </fileset>
                </copy>
-               -->
                <war warfile="${output-dir}/demo/${product-file}.war" webxml="WebContent/WEB-INF/web.xml">
                        <!-- WebContent: htmls, styles, license-->
                        <fileset dir="WebContent">
                        <lib dir="${output-dir}/lib/themes">
                                <include name="${themes-jar-name}" />
                        </lib>
-
-                       <!-- Demo package -->
+                       <!-- Demo package and themes -->
                        <lib dir="${output-dir}/lib">
                                <include name="${demo-lib-jar-name}" />
                                <!-- Toolkit could automatically add all JARs in lib/themes -->
                                <!-- <include name="${demo-themes-jar-name}" /> -->
                        </lib>
-                       <!-- Demo themes -->
                        <lib dir="${output-dir}/lib">
                                <include name="themes/demo/**/*" />
                        </lib>
+                       <!-- Javadoc -->
 
                        <!-- Calc and HelloWorld source and html source -->
                        <fileset dir="build/result">
index 91bbc12f3e2f14590ce79df39c33a58a0df45e93..24f10f99753808fed6cee6c9ff2892f46d6daa6f 100644 (file)
@@ -4,3 +4,8 @@ docbook.head.title=<xsl:apply-templates select="." mode="object.title.markup.tex
 html.body.start1=<div id="container"><div id="header"><h1>
 html.body.start2=</h1></div><div id="itmilllogo"></div>
 html.body.end=<div id="footer"><span>Version: ${version}</span>&#x0A9; Oy IT Mill Ltd. 2000-2007</div></div>
+html.head.tag=<head>
+html.head.endtag=</head>
+html.head.style=<link rel="stylesheet" type="text/css" href="styles/demos.css" />
+javadoc.doctitle=<h1>IT Mill Toolkit</h1>
+javadoc.copyright=<i>Copyright &#169; 2000-2006 IT Mill Ltd. All Rights Reserved.</i>
\ No newline at end of file