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= docbook.head.title= html.body.start1=
-html.body.end=
+html.body.end= html.head.tag= html.head.endtag= html.head.style= javadoc.doctitle=

Vaadin

-javadoc.bottom=Copyright © 2000-2010 IT Mill Ltd. All Rights Reserved. +javadoc.bottom=Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved. www.manual.body.start1=
-www.manual.body.end=
+www.manual.body.end= www.manual.docbook.head.title= \ No newline at end of file diff --git a/build/package/WebContent/WEB-INF/web.xml b/build/package/WebContent/WEB-INF/web.xml deleted file mode 100644 index b0a35d050b..0000000000 --- a/build/package/WebContent/WEB-INF/web.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - Vaadin - Vaadin examples - - - - productionMode - false - Vaadin production mode - - - - - VaadinApplicationRunner - com.vaadin.terminal.gwt.server.ApplicationRunnerServlet - - - - - VaadinApplicationRunner - /run/* - - - - index.html - - \ No newline at end of file diff --git a/build/package/eclipse-GWT Development Mode-launch b/build/package/eclipse-GWT Development Mode-launch deleted file mode 100644 index 8df95407bd..0000000000 --- a/build/package/eclipse-GWT Development Mode-launch +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build/package/eclipse-Vaadin Development Server-launch b/build/package/eclipse-Vaadin Development Server-launch deleted file mode 100644 index 13c4603a7b..0000000000 --- a/build/package/eclipse-Vaadin Development Server-launch +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build/package/eclipse-classpath b/build/package/eclipse-classpath deleted file mode 100644 index 1f70f30d0e..0000000000 --- a/build/package/eclipse-classpath +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/build/package/eclipse-org.eclipse.core.resources.prefs b/build/package/eclipse-org.eclipse.core.resources.prefs deleted file mode 100644 index bedbb5be74..0000000000 --- a/build/package/eclipse-org.eclipse.core.resources.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Mon Feb 09 04:14:03 EET 2009 -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/build/package/eclipse-org.eclipse.jdt.core.prefs b/build/package/eclipse-org.eclipse.jdt.core.prefs deleted file mode 100644 index 6ca90fa9ba..0000000000 --- a/build/package/eclipse-org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -#Wed Feb 18 23:54:00 EET 2009 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/build/package/eclipse-project b/build/package/eclipse-project deleted file mode 100644 index 0a8fbb63d8..0000000000 --- a/build/package/eclipse-project +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - com.sysdeo.eclipse.tomcat.tomcatnature - - diff --git a/build/package/start.bat b/build/package/start.bat deleted file mode 100644 index c967380a87..0000000000 --- a/build/package/start.bat +++ /dev/null @@ -1 +0,0 @@ -@java -cp "WebContent\demo\lib\jetty\jetty-6.1.7.jar;WebContent\demo\lib\jetty\jetty-util-6.1.7.jar;WebContent\demo\lib\jetty\servlet-api-2.5-6.1.7.jar;WebContent\WEB-INF\classes;WebContent\WEB-INF\src" com.vaadin.launcher.DemoLauncher diff --git a/build/package/start.sh b/build/package/start.sh deleted file mode 100644 index d484b131bd..0000000000 --- a/build/package/start.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if [ "$1" != "" ] ; then - cd $1 -fi - -java -cp WebContent/demo/lib/jetty/jetty-6.1.7.jar:WebContent/demo/lib/jetty/jetty-util-6.1.7.jar:WebContent/demo/lib/jetty/servlet-api-2.5-6.1.7.jar:WebContent/WEB-INF/classes:WebContent/WEB-INF/src com.vaadin.launcher.DemoLauncher $VAADIN_PARAMETERS diff --git a/build/readme.txt b/build/readme.txt index 5a52afe1de..2e54326e44 100644 --- a/build/readme.txt +++ b/build/readme.txt @@ -9,6 +9,6 @@ with Java 1.5, you can force build with 1.6 by adding the option Some of the most common targets to build: - Distribution ZIP-file will be built with target package-zip - Distribution JAR-file will be built with target package-jar -- Demo package will be built with target package-war +- Test WAR will be built with target package-war For more detailed info, see build.xml -- 2.39.5