From aade55ae17d4e40b0ad64ae8d3c2a2205897f6ff Mon Sep 17 00:00:00 2001
From: Henri Sara
Date: Wed, 17 Aug 2011 08:32:29 +0000
Subject: [PATCH] #7381 Packaging changes for Vaadin 6.7: JAR and test WAR
only, no demo WAR nor ZIP; some cleanup (files that were in ZIP, build.xml)
svn changeset:20444/svn branch:6.7
---
build/bin/package-diff.py | 71 +---
build/build.xml | 344 ++++--------------
build/build_manual.xml | 2 -
build/html-style.properties | 6 +-
build/package/WebContent/WEB-INF/web.xml | 42 ---
.../eclipse-GWT Development Mode-launch | 27 --
.../eclipse-Vaadin Development Server-launch | 23 --
build/package/eclipse-classpath | 16 -
.../eclipse-org.eclipse.core.resources.prefs | 3 -
.../eclipse-org.eclipse.jdt.core.prefs | 12 -
build/package/eclipse-project | 18 -
build/package/start.bat | 1 -
build/package/start.sh | 7 -
build/readme.txt | 2 +-
14 files changed, 86 insertions(+), 488 deletions(-)
delete mode 100644 build/package/WebContent/WEB-INF/web.xml
delete mode 100644 build/package/eclipse-GWT Development Mode-launch
delete mode 100644 build/package/eclipse-Vaadin Development Server-launch
delete mode 100644 build/package/eclipse-classpath
delete mode 100644 build/package/eclipse-org.eclipse.core.resources.prefs
delete mode 100644 build/package/eclipse-org.eclipse.jdt.core.prefs
delete mode 100644 build/package/eclipse-project
delete mode 100644 build/package/start.bat
delete mode 100644 build/package/start.sh
diff --git a/build/bin/package-diff.py b/build/bin/package-diff.py
index ec3b87f97b..2add68695e 100755
--- a/build/bin/package-diff.py
+++ b/build/bin/package-diff.py
@@ -23,31 +23,6 @@ def command(cmd, dryrun=0):
else:
print "Dry run - not executing."
-################################################################################
-# List files in an archive.
-################################################################################
-def listZipFiles(archive):
- pin = os.popen("unzip -l -qq %s | cut -c 29- | sort" % (archive), "r")
- files = map(lambda x: x.strip(), pin.readlines())
- pin.close()
-
- cleanedfiles = []
- for file in files:
- # Remove archive file name from the file names
- slashpos = file.find("/")
- if slashpos != -1:
- cleanedname = file[slashpos+1:]
- else:
- cleanedname = file
-
- # Purge GWT compilation files.
- if cleanedname.find(".cache.html") != -1:
- continue
-
- cleanedfiles.append(cleanedname)
-
- return cleanedfiles
-
################################################################################
# Difference of two lists of files
################################################################################
@@ -77,28 +52,10 @@ def listJarFiles(jarfile):
return files
-################################################################################
-# Lists files inside a Vaadin Jar inside a ZIP
-################################################################################
-
-# For Vaadin 6.3 Zip
-def listZipVaadinJarFiles(zipfile, vaadinversion):
- jarfile = "vaadin-%s/WebContent/vaadin-%s.jar" % (vaadinversion, vaadinversion)
- extractedjar = "/tmp/vaadinjar-tmp-%d.jar" % (os.getpid())
- zipcmd = "unzip -p %s %s > %s " % (zipfile, jarfile, extractedjar)
- command (zipcmd)
- files = listJarFiles(extractedjar)
- command ("rm %s" % (extractedjar))
- return files
-
################################################################################
# JAPI - Java API Differences
################################################################################
-def japize(version, zipfile):
- jarfile = "/tmp/vaadin-tmp.jar"
- packagedjar = "vaadin-%s/WebContent/vaadin-%s.jar" % (version, version)
- command ("unzip -p %s %s > %s " % (zipfile, packagedjar, jarfile))
-
+def japize(version, jarfile):
cmd = "%s as %s apis %s +com.vaadin, $JAVA_HOME/jre/lib/rt.jar lib/core/**/*.jar 2>/dev/null" % (JAPIZE, version, jarfile)
command (cmd)
@@ -125,7 +82,7 @@ latestversion = latestdata[0].strip()
latestpath = latestdata[1].strip()
latestURL = downloadsite + "/" + latestpath + "/"
-latestfilename = "vaadin-%s.zip" % (latestversion)
+latestfilename = "vaadin-%s.jar" % (latestversion)
latestpackage = latestURL + latestfilename
locallatestpackage = "/tmp/%s" % (latestfilename)
@@ -144,34 +101,16 @@ except OSError:
wgetcmd = "wget -q -O %s %s" % (locallatestpackage, latestpackage)
command (wgetcmd)
-# List files in latest version.
-latestfiles = listZipFiles(locallatestpackage)
-
# List files in built version.
builtversion = sys.argv[1]
-builtpackage = "build/result/vaadin-%s.zip" % (builtversion)
-builtfiles = listZipFiles(builtpackage)
+builtpackage = "build/result/vaadin-%s/WebContent/vaadin-%s.jar" % (builtversion, builtversion)
# Report differences
-print "\n--------------------------------------------------------------------------------\nVaadin ZIP differences"
-
-# New files
-newfiles = diffFiles(builtfiles, latestfiles)
-print "\n%d new files:" % (len(newfiles))
-for item in newfiles:
- print item
-
-# Removed files
-removed = diffFiles(latestfiles, builtfiles)
-print "\n%d removed files:" % (len(removed))
-for item in removed:
- print item
-
print "\n--------------------------------------------------------------------------------\nVaadin JAR differences"
-latestJarFiles = listZipVaadinJarFiles(locallatestpackage, latestversion)
-builtJarFiles = listZipVaadinJarFiles(builtpackage, builtversion)
+latestJarFiles = listJarFiles(locallatestpackage)
+builtJarFiles = listJarFiles(builtpackage)
# New files
newfiles = diffFiles(builtJarFiles, latestJarFiles)
diff --git a/build/build.xml b/build/build.xml
index 8a052b1a89..4e00d0248c 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -6,28 +6,16 @@
basedir="../" default="package-all">
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -48,22 +36,6 @@
uri="antlib:org.apache.maven.artifact.ant"
classpathref="maven-ant-tasks.classpath" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -107,10 +79,6 @@
-
-
-
-
@@ -168,13 +136,14 @@
+
-
+
@@ -205,38 +174,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Building WAR
+ Building Test WAR
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
@@ -267,15 +222,35 @@
##teamcity[publishArtifacts '${result-path}/${base-name}-liferay.zip']
-
-
+
+
+ Adding test class files and launcher configuration.
+
+
+
+
+
+
+
+
+
+
+
+ Adding test resources.
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
@@ -308,77 +283,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -399,8 +324,6 @@
Java/HTML/CSS/XML files are filtered so the license is added and the version is set.
Other files are just copied.
-
- If build.include.tests is not set, then "{$result-path}/src/tests" is created but no files are copied to it.
-->
@@ -442,17 +365,12 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
Unifying mix usage of Mac/Linux/Win linefeeds for java/html/css/xml files.
@@ -465,16 +383,11 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
@@ -483,17 +396,12 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
-
-
+
+
-
-
-
-
-
Adding VAADIN/themes, demo and hsqldb.jar files.
@@ -501,10 +409,6 @@
-
-
-
-
@@ -512,18 +416,12 @@
-
+
-
-
-
-
-
-
-
+
@@ -536,8 +434,6 @@
-
-
@@ -585,22 +481,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -649,18 +529,10 @@
-
-
-
- Compiling widget sets sequentially.
-
-
-
-
-
-
-
-
+
+
+
+
Compiling widget sets in parallel.
@@ -668,13 +540,6 @@
-
-
-
-
-
-
-
@@ -700,7 +565,7 @@
-
+
@@ -774,29 +639,6 @@
-
-
- Building demos
- Adding demo class files and launcher configuration.
-
-
-
-
-
-
-
-
-
-
-
- Adding test resources.
-
-
-
-
-
-
-
@@ -847,9 +689,6 @@
-
-
-
@@ -869,7 +708,7 @@
-
+
@@ -903,7 +742,7 @@
-
+
@@ -963,13 +802,13 @@
-
+
-
+
Installing ${src} to ${target}
@@ -984,7 +823,7 @@
Result: ${nightly.install.scp.result}
-
+
@@ -1005,34 +844,6 @@
-
-
Publishing ${output-dir}/WebContent/${lib-jar-name} to Maven repository
@@ -1115,8 +926,7 @@
-
-
+
@@ -1148,7 +958,7 @@
-
+
@@ -1163,7 +973,7 @@
-
+
diff --git a/build/build_manual.xml b/build/build_manual.xml
index 5f0f69c69c..dc24c648f0 100644
--- a/build/build_manual.xml
+++ b/build/build_manual.xml
@@ -10,7 +10,6 @@
-
@@ -55,7 +54,6 @@
-
diff --git a/build/html-style.properties b/build/html-style.properties
index 4700e4ca24..c517b25080 100644
--- a/build/html-style.properties
+++ b/build/html-style.properties
@@ -3,13 +3,13 @@ html.body.endtag=