summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-04-24 15:28:22 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-04-24 15:28:22 +0000
commit90dbab926ba5a85e7e035bf0565ba333351a1292 (patch)
treed111938c708b31c79ad5fbfc3f3d6749287ec167 /build
parent185e4947e17a35104b1484070ec12e42393b6135 (diff)
downloadvaadin-framework-90dbab926ba5a85e7e035bf0565ba333351a1292.tar.gz
vaadin-framework-90dbab926ba5a85e7e035bf0565ba333351a1292.zip
Fixed #650
svn changeset:1321/svn branch:trunk
Diffstat (limited to 'build')
-rw-r--r--build/build.xml23
1 files changed, 15 insertions, 8 deletions
diff --git a/build/build.xml b/build/build.xml
index 5858802cea..0bb59095d1 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -74,7 +74,7 @@
<!-- Themes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<target name="themes" depends="init">
- <copy todir="${output-dir}/lib/themes">
+ <copy todir="build/result/themes">
<fileset dir="WebContent/WEB-INF/lib/themes">
<exclude name="**/.svn" />
<include name="corporate/**/*" />
@@ -83,6 +83,13 @@
<include name="example/**/*" />
</fileset>
</copy>
+
+ <fixcrlf srcdir="build/result/themes" includes="**/*.js **/*.css" eol="lf" eof="remove" />
+
+ <!-- Add unoptimized (not obfuscated) themes -->
+ <copy todir="${output-dir}/lib/themes">
+ <fileset dir="build/result/themes" />
+ </copy>
<!-- Brokes CSS, do not use
<echo>CSS syntax check and optimizing.</echo>
@@ -110,23 +117,23 @@
<echo>JavaScript syntax check, optimizing and obfuscation.</echo>
<for param="file">
<path>
- <fileset dir="${output-dir}/lib/themes">
+ <fileset dir="build/result/themes">
<include name="**/*.js" />
</fileset>
</path>
<sequential>
<echo>@{file}</echo>
<!-- 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}">
+ <java dir="build/result/themes" jar="build/lib/custom_rhino.jar" fork="true" failonerror="true" maxmemory="64m" output="@{file}">
<arg value="-c" />
<arg value="@{file}" />
</java>
</sequential>
</for>
- <fixcrlf srcdir="${output-dir}/lib/themes" includes="**/*.js **/*.css" eol="lf" eof="remove" />
+ <!-- add optimized themes -->
<jar jarfile="${output-dir}/lib/${themes-jar-name}" compress="false">
- <fileset dir="${output-dir}/lib/themes">
+ <fileset dir="build/result/themes">
<patternset>
<include name="corporate/**/*" />
<include name="base/**/*" />
@@ -152,7 +159,7 @@
</patternset>
</fileset>
</copy>
-
+
<!-- Convert to CRLF's and tabs -->
<fixcrlf srcdir="build/result/src" eol="crlf" tablength="4" tab="remove" includes="**/*.java" />
@@ -221,14 +228,14 @@
</patternset>
</fileset>
</jar>
-
+
<!-- Copy demo directory (Jetty) -->
<copy todir="${output-dir}/demo">
<fileset dir="build/demo">
<exclude name="**/.svn" />
</fileset>
</copy>
-
+
<!-- Create demo WAR -->
<war warfile="${output-dir}/demo/${product-file}.war" webxml="WebContent/WEB-INF/web.xml">
<!-- WebContent: htmls, styles, license-->