summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-02-09 12:29:36 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-02-09 12:29:36 +0000
commit4b1f640993f9d5c5ee253439cac3939ab1a66662 (patch)
treeabf9c2b1c84c4add8cc4fc8fb3c276d72397f48d
parent6192230511a90a632a7372bd5124221406b32ebe (diff)
downloadvaadin-framework-4b1f640993f9d5c5ee253439cac3939ab1a66662.tar.gz
vaadin-framework-4b1f640993f9d5c5ee253439cac3939ab1a66662.zip
svn changeset:602/svn branch:toolkit
-rw-r--r--build/build.xml29
-rw-r--r--build/html-style.properties5
2 files changed, 21 insertions, 13 deletions
diff --git a/build/build.xml b/build/build.xml
index 81a5c396ca..dc1c67ebff 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -56,10 +56,7 @@
</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">
@@ -103,8 +100,7 @@
</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}" />
@@ -203,13 +199,21 @@
<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">
@@ -228,17 +232,16 @@
<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">
diff --git a/build/html-style.properties b/build/html-style.properties
index 91bbc12f3e..24f10f9975 100644
--- a/build/html-style.properties
+++ b/build/html-style.properties
@@ -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