diff options
-rw-r--r-- | WebContent/VAADIN/readme.txt | 3 | ||||
-rwxr-xr-x | build/bin/package-diff.py | 52 | ||||
-rw-r--r-- | build/build.xml | 313 | ||||
-rw-r--r-- | build/package/build-widgetset.xml | 14 | ||||
-rw-r--r-- | build/package/eclipse-Vaadin Hosted Mode Browser-launch | 2 | ||||
-rw-r--r-- | build/package/mac-DS_Store | bin | 6148 -> 0 bytes | |||
-rw-r--r-- | build/package/mac-Start IT Mill Toolkit.zip | bin | 180368 -> 0 bytes | |||
-rw-r--r-- | build/package/mac-Start-icon_script.zip | bin | 180436 -> 0 bytes | |||
-rw-r--r-- | build/package/mac-VolumeIcon.icns | bin | 183344 -> 0 bytes | |||
-rw-r--r-- | build/package/readme.txt (renamed from build/package/linux-readme.txt) | 43 |
10 files changed, 118 insertions, 309 deletions
diff --git a/WebContent/VAADIN/readme.txt b/WebContent/VAADIN/readme.txt index 926bc01a9e..672862a35c 100644 --- a/WebContent/VAADIN/readme.txt +++ b/WebContent/VAADIN/readme.txt @@ -29,8 +29,7 @@ Vaadin Development When developing the Vaadin Library itself, change to "build" directory and run "ant widgetsets" to compile all widgetsets or "ant widgetset-default", "ant-widgetset-reserver", or "ant widgetset-colorpicker" to compile individual -widgetsets. You must have GWT installed under build/gwt, under the proper -platform directory. +widgetsets. You must have GWT installed under build/gwt. See http://dev.vaadin.com/wiki/DevDocs/StartingDevelopment for instructions for installing GWT and compiling widgetsets for Vaadin development. diff --git a/build/bin/package-diff.py b/build/bin/package-diff.py index de479ca8b4..1f898e62bc 100755 --- a/build/bin/package-diff.py +++ b/build/bin/package-diff.py @@ -1,6 +1,6 @@ #!/usr/bin/python -import sys,os +import sys,os,re from sets import Set ################################################################################ @@ -45,6 +45,29 @@ def listfiles(archive): return cleanedfiles +# For Zip archives in Vaadin 6.3.0 +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 ################################################################################ @@ -59,9 +82,9 @@ def diffFiles(a, b): ################################################################################ # Lists files inside a Zip file (a JAR) ################################################################################ -def listZipFiles(zipfile): - # Read the zip content listing - pin = os.popen("unzip -ql %s" % zipfile, "r") +def listJarFiles(jarfile): + # Read the jar content listing + pin = os.popen("unzip -ql %s" % jarfile, "r") lines = map(lambda x: x[:-1], pin.readlines()) pin.close() @@ -77,15 +100,26 @@ def listZipFiles(zipfile): ################################################################################ # Lists files inside a Vaadin Jar inside a Tar ################################################################################ +# For Vaadin 6.2 Tar def listTarVaadinJarFiles(tarfile, vaadinversion): jarfile = "vaadin-linux-%s/WebContent/vaadin-%s.jar" % (vaadinversion, vaadinversion) extractedjar = "/tmp/vaadinjar-tmp-%d.jar" % (os.getpid()) tarcmd = "tar zOxf %s %s > %s " % (tarfile, jarfile, extractedjar) command (tarcmd) - files = listZipFiles(extractedjar) + files = listJarFiles(extractedjar) command ("rm %s" % (extractedjar)) return files +# 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()) + tarcmd = "unzip -p %s %s > %s " % (zipfile, jarfile, extractedjar) + command (tarcmd) + files = listJarFiles(extractedjar) + command ("rm %s" % (extractedjar)) + return files + ################################################################################ # ################################################################################ @@ -99,6 +133,8 @@ pin.close() latestversion = latestdata[0].strip() latestpath = latestdata[1].strip() latestURL = downloadsite + "/" + latestpath + "/" + +# TODO: Remove "linux" after 6.3.0 is released. linuxfilename = "vaadin-linux-%s.tar.gz" % (latestversion) linuxpackage = latestURL + linuxfilename locallinuxpackage = "/tmp/%s" % (linuxfilename) @@ -123,8 +159,8 @@ latestfiles = listfiles(locallinuxpackage) # List files in built version. builtversion = sys.argv[1] -builtpackage = "build/result/vaadin-linux-%s.tar.gz" % (builtversion) -builtfiles = listfiles(builtpackage) +builtpackage = "build/result/vaadin-%s.zip" % (builtversion) +builtfiles = listZipFiles(builtpackage) # Report differences @@ -145,7 +181,7 @@ for item in removed: print "\n--------------------------------------------------------------------------------\nVaadin JAR differences" latestJarFiles = listTarVaadinJarFiles(locallinuxpackage, latestversion) -builtJarFiles = listTarVaadinJarFiles(builtpackage, builtversion) +builtJarFiles = listZipVaadinJarFiles(builtpackage, builtversion) # New files newfiles = diffFiles(builtJarFiles, latestJarFiles) diff --git a/build/build.xml b/build/build.xml index a6b7e65ecf..58654a1d73 100644 --- a/build/build.xml +++ b/build/build.xml @@ -9,7 +9,7 @@ When creating release use only "package-*" targets: package-all - * creates four release packages for three three platforms (below) + * creates the release package, a war, and a Liferay war package-windows * vaadin-windows-<version>.zip @@ -30,31 +30,19 @@ <!-- Call one of package-* targets unless you understand what you are doing --> - <target name="package-all" depends="clean-all, package-init, init, build, docs, internal-package-mac, internal-package-windows, internal-package-linux, internal-package-war, internal-package-liferay" description="Build public packages for Windows, Linux and Mac platforms."> - </target> - - <target name="package-mac" depends="clean-result, package-init, init, build, docs, internal-package-mac" description="Create public tar.gz package for Mac."> - </target> - - <target name="package-windows" depends="clean-result, package-init, init, build, docs, internal-package-windows" description="Create public ZIP package for Windows."> - </target> - - <target name="package-linux" depends="clean-result, package-init, init, build, docs, internal-package-linux" description="Create public tar.bz2 package for Linux."> - </target> - - <target name="package-oophm" depends="clean-result, package-init, init-oophm, build, docs, internal-package-oophm" description="Create public tar.gz package for OOPHM."> + <target name="package-all" depends="clean-all, package-init, init, build, docs, internal-package-zip, internal-package-war, internal-package-liferay" description="Build public packages."> </target> <target name="package-jar" depends="clean-result, package-init, init, libs" description="Create vaadin-x.y.z.jar file."> </target> - <target name="package-war" depends="clean-result, package-init, init, build, docs, internal-package-linux, internal-package-war"> + <target name="package-war" depends="clean-result, package-init, init, build, docs, internal-package-zip, internal-package-war"> </target> - <target name="package-liferay-zip" depends="clean-result, package-init, init, build, docs, internal-package-linux, internal-package-liferay"> + <target name="package-liferay-zip" depends="clean-result, package-init, init, build, docs, internal-package-zip, internal-package-liferay"> </target> - <target name="package-test" depends="clean-result, nightly-init, package-init, init, build, docs, internal-package-linux, nightly-publish"> + <target name="package-test" depends="clean-result, nightly-init, package-init, init, build, docs, internal-package-zip, nightly-publish"> </target> <!-- ant contrib required for flow control (for loop, if, property override) --> @@ -77,19 +65,14 @@ </target> <target name="test-package" depends="init" description="used for testing build.xml"> - <echo>Creating package for Mac platform.</echo> - <antcontrib:var name="package-platform" value="mac" /> <antcontrib:var name="eclipse-launch-vmargs" value="-XstartOnFirstThread -Xms128M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> + <antcall target="add-misc-files" inheritAll="true" inheritRefs="true" /> <delete file="${result-path}/eclipse-test" followsymlinks="false" /> <exec executable="ln" failonerror="false"> <arg line="-s" /> <arg line="${output-dir}" /> <arg line="${result-path}/eclipse-test" /> </exec> - <!-- - <antcall target="create-mac-diskimage" inheritAll="true" inheritRefs="true" /> - --> </target> <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - --> @@ -142,10 +125,6 @@ <!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- ================================================================== --> - <!-- Find out which platform we are in --> - <target name="init-oophm-platform"><property name="platform" value="oophm" /></target> - <target name="init-oophm" depends="init-oophm-platform,init"></target> - <!-- Called only when building installation packages. --> <target name="package-init"> </target> @@ -179,7 +158,7 @@ <property name="lib-gwt-dev" location="${gwt-dir}/gwt-dev.jar" /> <property name="lib-gwt-user" location="${gwt-dir}/gwt-user.jar" /> - <echo>We are on ${platform} platform (${os.name} ${os.version}), using gwt version ${gwt-version}.</echo> + <echo>We are using gwt version ${gwt-version}.</echo> <!-- Destination files --> <property name="lib-jar-name" value="${product-file}-${version.full}.jar" /> @@ -233,18 +212,16 @@ </target> - <target name="internal-package-windows"> - <antcontrib:var name="package-platform" value="windows" /> - <echo>Creating package for ${package-platform} platform.</echo> + <target name="internal-package-zip"> <antcontrib:var name="eclipse-launch-vmargs" value="-Xms256M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> - <zip zipfile="${result-path}/${product-file}-${package-platform}-${version.full}.zip"> - <zipfileset prefix="${product-file}-${package-platform}-${version.full}" dir="${result-path}/${product-file}-${version.full}"> + <antcall target="add-misc-files" inheritAll="true" inheritRefs="true" /> + <zip zipfile="${result-path}/${product-file}-${version.full}.zip"> + <zipfileset prefix="${product-file}-${version.full}" dir="${result-path}/${product-file}-${version.full}"> <patternset> <include name="**/*" /> </patternset> </zipfileset> - <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}"> + <zipfileset prefix="${product-file}-${version.full}/gwt" dir="${gwt-dir}"> <patternset> <include name="**/*" /> <exclude name="gwt/doc"/> @@ -252,82 +229,17 @@ </patternset> </zipfileset> </zip> - </target> - - <target name="internal-package-linux"> - <antcontrib:var name="package-platform" value="linux" /> - <echo>Creating package for ${package-platform} platform.</echo> - <antcontrib:var name="eclipse-launch-vmargs" value="-Xms256M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> - <tar destfile="${result-path}/${product-file}-${package-platform}-${version.full}.tar.gz" compression="gzip" longfile="gnu"> - <!-- TODO use very slow but effective bzip2 - <tar destfile="${result-path}/${product-file}-${package-platform}-${version.full}.tar.bz2" compression="bzip2" longfile="gnu"> - --> - <tarfileset prefix="${product-file}-${package-platform}-${version.full}" dir="${result-path}/${product-file}-${version.full}"> - <patternset> - <include name="**/*" /> - </patternset> - </tarfileset> - <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}"> - <patternset> - <include name="**/*" /> - </patternset> - </tarfileset> - </tar> - <!-- Only the Linux package is currently required for calculating these. --> - <!-- Notice that the differences comparison is conditional. --> + <!-- Notice that the differences comparison is conditional. --> <antcall target="differences"/> </target> - <target name="internal-package-oophm"> - <antcontrib:var name="package-platform" value="oophm" /> - <echo>Creating package for ${package-platform} platform.</echo> - <antcontrib:var name="eclipse-launch-vmargs" value="-Xms256M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> - <zip zipfile="${result-path}/${product-file}-${package-platform}-${version.full}.zip"> - <zipfileset prefix="${product-file}-${package-platform}-${version.full}" dir="${result-path}/${product-file}-${version.full}"> - <patternset> - <include name="**/*" /> - </patternset> - </zipfileset> - <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}"> - <patternset> - <include name="**/*" /> - </patternset> - </zipfileset> - </zip> - </target> - - <target name="internal-package-mac"> - <antcontrib:var name="package-platform" value="mac" /> - <echo>Creating package for ${package-platform} platform.</echo> - <antcontrib:var name="eclipse-launch-vmargs" value="-XstartOnFirstThread -Xms256M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> - <tar destfile="${result-path}/${product-file}-${package-platform}-${version.full}.tar.gz" compression="gzip" longfile="gnu"> - <tarfileset prefix="${product-file}-${package-platform}-${version.full}" dir="${result-path}/${product-file}-${version.full}"> - <patternset> - <include name="**/*" /> - </patternset> - </tarfileset> - <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}"> - <patternset> - <include name="**/*" /> - </patternset> - </tarfileset> - </tar> - <!-- TODO: remove me: DISABLE for speed --> - <!-- <antcall target="create-mac-diskimage" inheritAll="true" inheritRefs="true" /> --> - </target> - <target name="internal-package-war"> <echo>Building WAR</echo> <!-- Add the files. --> - <!-- Warning: This should not really be "platform spefic". --> - <antcontrib:var name="package-platform" value="linux" /> <antcontrib:var name="eclipse-launch-vmargs" value="-Xms256M -Xmx512M" /> - <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> + <antcall target="add-misc-files" inheritAll="true" inheritRefs="true" /> <!-- Copy source tree to class tree. --> <!-- A workaround for not setting classpath properly in WAR. --> @@ -367,77 +279,9 @@ </zip> <echo>##teamcity[publishArtifacts '${result-path}/${product-file}-${version.full}-liferay.zip']</echo> - - </target> - - <target name="create-mac-diskimage"> - <!-- create Mac disk image (dmg) also --> - <property name="mount.dir" value="${result-path}/mac-mounted-image" /> - <mkdir dir="${mount.dir}" /> - <delete file="${result-path}/*.dmg" /> - <antcontrib:if> - <equals arg1="${platform}" arg2="mac" /> - <then> - <untar src="${result-path}/${product-file}-${package-platform}-${version.full}.tar.gz" dest="${result-path}/" compression="gzip" /> - <echo>Creating Mac disk image (dmg)</echo> - <!-- create image --> - <echo>hdiutil create -format UDRW -volname ${product-file}-${version.full} -srcfolder ${result-path}/${product-file}-${package-platform}-${version.full} ${result-path}/disk-image.dmg</echo> - <exec executable="hdiutil" failonerror="true"> - <arg line="create -format UDRW -volname ${product-file}-${version.full} -srcfolder ${result-path}/${product-file}-${package-platform}-${version.full} ${result-path}/disk-image.dmg" /> - </exec> - <!-- open image --> - <exec executable="hdiutil" failonerror="true"> - <arg line='attach' /> - <arg line='-readwrite' /> - <arg line='-noverify' /> - <arg line='-noautoopen' /> - <arg line='-mountpoint ${mount.dir}' /> - <arg line='${result-path}/disk-image.dmg' /> - </exec> - <!-- make sure root folder is opened when image is --> - <exec executable="bless" failonerror="true"> - <arg line='--folder ${mount.dir}' /> - <arg line='--openfolder ${mount.dir}' /> - </exec> - <!-- hack: wait for completion --> - <exec executable="sleep" failonerror="true"> - <arg line='2' /> - </exec> - <!-- here we could position items --> - <!-- - <exec executable="osascript" failonerror="true"> - <arg line='package/positionItems.scpt ${mount.dir}' /> - </exec> - --> - <!-- turn on volume icon --> - <exec executable="/Developer/Tools/SetFile" failonerror="true"> - <arg line='-a C' /> - <arg line='${mount.dir}' /> - </exec> - <!-- set executable bit --> - <chmod file="${mount.dir}/start.sh" perm="ugo+x" /> - <!-- close image --> - <exec executable="hdiutil" failonerror="true"> - <arg line='detach ${mount.dir}/' /> - </exec> - <!-- make read-only --> - <exec executable="hdiutil" failonerror="true"> - <arg line='convert ${result-path}/disk-image.dmg' /> - <arg line='-format UDZO' /> - <arg line='-imagekey zlib-level=9' /> - <arg line='-o ${result-path}/${product-file}-${package-platform}-${version.full}.dmg' /> - </exec> - <delete file="${result-path}/disk-image.dmg" /> - <!-- internet-enable --> - <exec executable="hdiutil" failonerror="true"> - <arg line='internet-enable ${result-path}/${product-file}-${package-platform}-${version.full}.dmg' /> - </exec> - </then> - </antcontrib:if> </target> - <target name="add-platform-specific-files"> - <echo>Adding platform specific files for ${package-platform}</echo> + <target name="add-misc-files"> <delete includeemptydirs="true" defaultexcludes="false"> <fileset dir="${output-dir}"> <include name=".*" /> @@ -455,9 +299,6 @@ <replacetokens begintoken="@" endtoken="@"> <token key="version" value="${version.full}" /> </replacetokens> - <replacetokens begintoken="@" endtoken="@"> - <token key="platform" value="${package-platform}" /> - </replacetokens> </filterchain> <fileset dir="WebContent/license"> <include name="COPYING" /> @@ -468,11 +309,6 @@ <expandproperties /> <replacetokens begintoken="@" endtoken="@"> <token key="version" value="${version.full}" /> - <token key="/version" value="" /> - </replacetokens> - <replacetokens begintoken="@" endtoken="@"> - <token key="platform" value="${package-platform}" /> - <token key="/platform" value="" /> </replacetokens> <replacetokens begintoken="@" endtoken="@"> <token key="builddate" value="${build.date}" /> @@ -487,12 +323,11 @@ <include name="license/*.txt" /> </fileset> </copy> - <copy file="build/package/${package-platform}-readme.txt" tofile="${output-dir}/readme.txt"> + <copy file="build/package/readme.txt" tofile="${output-dir}/readme.txt"> <filterchain> <expandproperties /> - <replacetokens begintoken="<" endtoken=">"> + <replacetokens begintoken="@" endtoken="@"> <token key="version" value="${version.full}" /> - <token key="/version" value="" /> </replacetokens> </filterchain> </copy> @@ -502,18 +337,12 @@ <!-- .classpath, *.launch, build-widgetset.xml --> <replacetokens begintoken="@" endtoken="@"> <token key="version" value="${version.full}" /> - <token key="/version" value="" /> </replacetokens> <!-- .classpath --> <replacetokens begintoken="<" endtoken=">"> <token key="platform-specific-entries" value="<classpathentry kind="lib" path="gwt/gwt-dev.jar" />" /> <token key="/platform-specific-entries" value="" /> </replacetokens> - <!-- .classpath, HostedMode.launch, build-widgetset.xml --> - <!-- We can't use XML notation for this, because it can be inside an attribute definition. --> - <replacetokens begintoken="@" endtoken="@"> - <token key="platform" value="${package-platform}" /> - </replacetokens> <!-- .project, *.launch --> <replacetokens begintoken="<" endtoken=">"> <token key="eclipse-workspace-name" value="${eclipse-workspace-name}" /> @@ -542,80 +371,20 @@ <mkdir dir="${output-dir}/.settings" /> <move file="${output-dir}/eclipse-org.eclipse.core.resources.prefs" tofile="${output-dir}/.settings/org.eclipse.core.resources.prefs" /> <move file="${output-dir}/eclipse-org.eclipse.jdt.core.prefs" tofile="${output-dir}/.settings/org.eclipse.jdt.core.prefs" /> - <antcontrib:if> - <equals arg1="${package-platform}" arg2="windows" /> - <then> - <copy todir="${output-dir}"> - <fileset dir="build/package"> - <include name="start.bat" /> - </fileset> - </copy> - </then> - </antcontrib:if> - <antcontrib:if> - <equals arg1="${package-platform}" arg2="linux" /> - <then> - <copy todir="${output-dir}"> - <fileset dir="build/package"> - <include name="start.sh" /> - </fileset> - </copy> - <chmod file="${output-dir}/start.sh" perm="ugo+x" /> - <exec executable="chmod" failonerror="false"> - <arg line="ugo+x" /> - <arg line="${output-dir}/start.sh" /> - </exec> - </then> - </antcontrib:if> - <antcontrib:if> - <equals arg1="${package-platform}" arg2="oophm" /> - <then> - <copy todir="${output-dir}"> - <fileset dir="build/package"> - <include name="start.sh" /> - </fileset> - </copy> - <chmod file="${output-dir}/start.sh" perm="ugo+x" /> - <exec executable="chmod" failonerror="false"> - <arg line="ugo+x" /> - <arg line="${output-dir}/start.sh" /> - </exec> - </then> - </antcontrib:if> - <antcontrib:if> - <equals arg1="${package-platform}" arg2="mac" /> - <then> - <copy todir="${output-dir}"> - <fileset dir="build/package"> - <include name="start.sh" /> - </fileset> - </copy> - <!-- must be done manually --> - <!-- <exec executable="cp" failonerror="true"> - <arg line="-r" /> - <arg line="build/package/Start.app" /> - <arg line="${output-dir}" /> - </exec> --> - <!-- but again, ant just fails with any * or other special characters --> - <!-- package icon or folder background image / icon placements not in use --> - <!-- - <exec executable="cp" failonerror="true"> - <arg line="build/package/Icon*" /> - <arg line="${output-dir}" /> - </exec> - <exec executable="cp" failonerror="true"> - <arg line="build/package/mac-DS_Store" /> - <arg line="${output-dir}/.DS_Store" /> - </exec> - <copy file="build/package/mac-VolumeIcon.icns" tofile="${output-dir}/.VolumeIcon.icns" /> - --> - <chmod file="${output-dir}/start.sh" perm="ugo+x" /> - <exec executable="chmod" failonerror="false"> - <arg line="ugo+x" /> - <arg line="${output-dir}/start.sh" /> - </exec> - </then> - </antcontrib:if> + + <copy todir="${output-dir}"> + <fileset dir="build/package"> + <include name="start.bat" /> + <include name="start.sh" /> + </fileset> + </copy> + + <!-- TODO: Why is this set both with <chmod> and <exec>? --> + <chmod file="${output-dir}/start.sh" perm="ugo+x" /> + <exec executable="chmod" failonerror="false"> + <arg line="ugo+x" /> + <arg line="${output-dir}/start.sh" /> + </exec> </target> <!-- Build server-side, client-side, libraries, and demos. --> @@ -1023,7 +792,7 @@ <property name="lib-gwt-dev" location="${gwt-dir}/gwt-dev.jar" /> <property name="lib-gwt-user" location="${gwt-dir}/gwt-user.jar" /> - <echo>We are on ${platform} platform, using ${lib-gwt-dev}.</echo> + <echo>We are using ${lib-gwt-dev}.</echo> <echo>Widget sets output dir: ${widgetsets-output-dir}</echo> </target> @@ -1240,7 +1009,7 @@ <!-- ================================================================== --> <!-- Main target for the nightly build. --> - <target name="nightly" depends="clean-result, nightly-init, package-init, init, build, internal-package-linux"> + <target name="nightly" depends="clean-result, nightly-init, package-init, init, build, internal-package-zip"> </target> @@ -1285,14 +1054,13 @@ <echo>Installing ${output-dir}/WebContent/${lib-jar-name} to ${nightly.publish}</echo> <echo>Hopefully you have permissions for the copy operation with SSH.</echo> - <!-- Only Linux tests allowed. TODO: Generalize this. --> - <property name="package.linux.filename" value="${result-path}/${product-file}-${package-platform}-${version.full}.tar.gz"/> + <property name="package.filename" value="${result-path}/${product-file}-${version.full}.zip"/> <!-- Copy the linux installation package and the JAR. --> <exec executable="scp" searchpath="true" resultproperty="nightly.install.scp.result"> <arg value="-B"/> <arg value="${output-dir}/WebContent/${lib-jar-name}"/> - <arg value="${package.linux.filename}"/> + <arg value="${package.filename}"/> <arg value="${nightly.publish}"/> </exec> @@ -1338,7 +1106,6 @@ </target> <target name="testbench-tests" depends="init"> <fail unless="product-file" message="The 'product-file' property must be defined."/> - <fail unless="package-platform" message="The 'package-platform' property must be defined."/> <fail unless="version" message="The 'version' property must be defined."/> <echo>Version: ${version.full}</echo> @@ -1348,11 +1115,11 @@ <fail unless="com.vaadin.testbench.deployment.url" message="The 'com.vaadin.testbench.deployment.url' property must be defined."/> <fail unless="com.vaadin.testbench.lib.dir" message="The 'com.vaadin.testbench.lib.dir' property must be defined."/> - <property name="package.platform.name" value="${product-file}-${package-platform}-${version.full}"/> + <property name="package.name" value="${product-file}-${version.full}"/> <!-- Only Linux tests allowed. TODO: Generalize this. --> - <property name="package.linux.filename" value="${result-path}/${package.platform.name}.tar.gz"/> - <property name="package.linux.dir" value="${result-path}/${package.platform.name}.tar.gz"/> + <property name="package.filename" value="${result-path}/${package.name}.zip"/> + <property name="package.dir" value="${result-path}/${package.name}.zip"/> <!-- Run the separate test script. --> <ant antfile="tests/test.xml" target="test-package" inheritall="false" inheritrefs="true"> @@ -1360,9 +1127,9 @@ <!-- "tests" classes after unpacking the package. --> <property name="output-dir" value="${output-dir}"/> - <property name="package.filename" value="${package.linux.filename}"/> + <property name="package.filename" value="${package.filename}"/> <property name="testing.testarea" value="/tmp/testarea"/> - <property name="package.name" value="${package.platform.name}"/> + <property name="package.name" value="${package.name}"/> <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}"/> <property name="com.vaadin.testbench.deployment.url" value="${com.vaadin.testbench.deployment.url}"/> <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}"/> diff --git a/build/package/build-widgetset.xml b/build/package/build-widgetset.xml index 27a371b3a3..7fd7bd073d 100644 --- a/build/package/build-widgetset.xml +++ b/build/package/build-widgetset.xml @@ -23,17 +23,14 @@ See configure target to adjust this buildfile. 1. use WebContent under your project's root directory 2. WebContent/WEB-INF/lib/vaadin-@version@.jar exists 3. WebContent/WEB-INF/src contains your project source files - 4. gwt directory contains extracted GWT distribution for your platform (windows, linux or mac) + 4. gwt directory contains extracted GWT distribution --> <target name="configure"> <!-- Path from this file to the root of the Vaadin distribution package --> <property name="base" value="../../../" /> - <!-- which platform we are in, possible values are windows, linux and mac --> - <property name="gwt-platform" value="@platform@" /> - - <!-- where platform specific GWT distribution is located --> + <!-- where GWT distribution is located --> <property name="gwt-location" value="${base}gwt" /> <!-- where Vaadin jar is located --> @@ -86,9 +83,8 @@ See configure target to adjust this buildfile. <target name="init" depends="configure"> - <echo>Configured for ${gwt-platform} platform.</echo> <echo>Requirements for classpath:</echo> - <echo> ${gwt-location}/gwt-dev-${gwt-platform}.jar</echo> + <echo> ${gwt-location}/gwt-dev.jar</echo> <echo> ${gwt-location}/gwt-user.jar</echo> <echo> ${toolkit-jar-location}</echo> <echo> ${src-location}</echo> @@ -97,7 +93,7 @@ See configure target to adjust this buildfile. <!-- Check that files exist --> <fail message="Some of the required files (listed above) are missing."> <condition><not><resourcecount count="3"> - <filelist files="${gwt-location}/gwt-dev-${gwt-platform}.jar,${gwt-location}/gwt-user.jar,${toolkit-jar-location}"/> + <filelist files="${gwt-location}/gwt-dev.jar,${gwt-location}/gwt-user.jar,${toolkit-jar-location}"/> </resourcecount></not></condition> </fail> @@ -109,7 +105,7 @@ See configure target to adjust this buildfile. <pathelement path="${server-side-destination}" /> <pathelement path="${toolkit-jar-location}" /> <pathelement path="${gwt-location}/gwt-user.jar" /> - <pathelement path="${gwt-location}/gwt-dev-${gwt-platform}.jar" /> + <pathelement path="${gwt-location}/gwt-dev.jar" /> <fileset dir="${base}WebContent/WEB-INF/lib/"> <include name="*.jar"/> </fileset> diff --git a/build/package/eclipse-Vaadin Hosted Mode Browser-launch b/build/package/eclipse-Vaadin Hosted Mode Browser-launch index 0578393797..9f3820fad2 100644 --- a/build/package/eclipse-Vaadin Hosted Mode Browser-launch +++ b/build/package/eclipse-Vaadin Hosted Mode Browser-launch @@ -2,7 +2,7 @@ <launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> <stringAttribute key="bad_container_name" value="/<eclipse-workspace-name></eclipse-workspace-name>/Vaadin Hosted Mode.launch"/> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> -<listEntry value="/<eclipse-workspace-name></eclipse-workspace-name>/gwt/gwt-dev-@platform@.jar"/> +<listEntry value="/<eclipse-workspace-name></eclipse-workspace-name>/gwt/gwt-dev.jar"/> </listAttribute> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> <listEntry value="1"/> diff --git a/build/package/mac-DS_Store b/build/package/mac-DS_Store Binary files differdeleted file mode 100644 index b2de4bf44f..0000000000 --- a/build/package/mac-DS_Store +++ /dev/null diff --git a/build/package/mac-Start IT Mill Toolkit.zip b/build/package/mac-Start IT Mill Toolkit.zip Binary files differdeleted file mode 100644 index 23df10e3a1..0000000000 --- a/build/package/mac-Start IT Mill Toolkit.zip +++ /dev/null diff --git a/build/package/mac-Start-icon_script.zip b/build/package/mac-Start-icon_script.zip Binary files differdeleted file mode 100644 index 9de5a208d4..0000000000 --- a/build/package/mac-Start-icon_script.zip +++ /dev/null diff --git a/build/package/mac-VolumeIcon.icns b/build/package/mac-VolumeIcon.icns Binary files differdeleted file mode 100644 index a11c092378..0000000000 --- a/build/package/mac-VolumeIcon.icns +++ /dev/null diff --git a/build/package/linux-readme.txt b/build/package/readme.txt index 7ac0f10f15..d8c3d8ca77 100644 --- a/build/package/linux-readme.txt +++ b/build/package/readme.txt @@ -1,18 +1,32 @@ ==============================================================================
-Vaadin <version></version> Readme
+Vaadin @version@ Readme
==============================================================================
-------------
How to Start?
-------------
-Open a shell window, change to the installation directory, and execute "sh start.sh". It
-will start a web application at port 8888 on the local host and opens a web browser window
-to display the start page of Vaadin Content Browser.
+In Windows:
+ Just double-click start.bat icon. It will start a web application at
+ port 8888 on the local host and opens a web browser window to display
+ the start page of Vaadin Content Browser.
-The installation directory is a web application as itself and is directly importable to
-Eclipse IDE by selecting "File / Import / Existing Projects into Workspace" from Eclipse
-main menu. See the manual for detailed instructions.
+In Linux:
+ Open a shell window, change to the installation directory, and execute
+ "sh start.sh". It will start a web application at port 8888 on the local
+ host and opens a web browser window to display the start page of Vaadin
+ Content Browser.
+
+In Mac:
+ Start Terminal.app and run the start.sh script in the installation
+ directory. It will start a web application at port 8888 on the local
+ host and opens a web browser window to display the start page of Vaadin
+ Content Browser.
+
+The installation directory is a web application as itself and can be directly
+imported to the Eclipse IDE by selecting
+"File / Import / Existing Projects into Workspace" from Eclipse main menu.
+See the manual for detailed instructions.
---------------------------------
What's Inside the Vaadin Package?
@@ -21,9 +35,9 @@ What's Inside the Vaadin Package? You should start exploring Vaadin through the provided Content Browser web
application within this package; see 'How to Start?' above.
-The WebContent directory contains the content available through the Content Browser: the
-Vaadin Library, demos, documentation, and other useful information to get started
-with Vaadin.
+The WebContent directory contains the content available through the Content
+Browser: the Vaadin Library, demos, documentation, and other useful
+information to get started with Vaadin.
Below is a list of most important locations and files:
@@ -33,14 +47,11 @@ Start Vaadin COPYING
- license file
-WebContent/vaadin-<version></version>.jar
+WebContent/vaadin-@version@.jar
- Vaadin Library containing Java source and compiled files
-WebContent/doc/manual.pdf
-- Vaadin Reference Manual in PDF format
-
-WebContent/doc/manual/index.html
-- Vaadin Reference Manual in HTML format
+WebContent/doc/book-of-vaadin.pdf
+- Book of Vaadin in PDF format
WebContent/doc/api/index.html
- Vaadin API Documentation as JavaDoc reference
|