diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-04-29 13:22:53 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-04-29 13:22:53 +0000 |
commit | 217580bb8afc6068eba951429defb66b4cdcab2f (patch) | |
tree | f35526e300ee6a67845228354efbcc2a35f7e96f /build | |
parent | cd4c6d8ed95bb26672363d2e008464961935166b (diff) | |
parent | 8b0cf2389f1152f50cb38832f0b1d84b9e5cdbe4 (diff) | |
download | vaadin-framework-217580bb8afc6068eba951429defb66b4cdcab2f.tar.gz vaadin-framework-217580bb8afc6068eba951429defb66b4cdcab2f.zip |
Major theme refactoring:
-Base theme now completed.
-Default theme is now inherited from the Base theme, all redundant (but mandatory) style properties have been moved to the Base theme.
----
Includes major merges from 6.0 branch as well.
svn changeset:7572/svn branch:theme_2009_03
Diffstat (limited to 'build')
-rw-r--r-- | build/VERSION.properties | 2 | ||||
-rwxr-xr-x | build/bin/mergetool.py | 11 | ||||
-rw-r--r-- | build/build.xml | 72 | ||||
-rw-r--r-- | build/package/start.sh | 2 |
4 files changed, 63 insertions, 24 deletions
diff --git a/build/VERSION.properties b/build/VERSION.properties index 85aede4896..6a1bc1320c 100644 --- a/build/VERSION.properties +++ b/build/VERSION.properties @@ -1 +1 @@ -version=5.3.0 +version=6.0.development diff --git a/build/bin/mergetool.py b/build/bin/mergetool.py index 91d9d5105c..7ed1cb1579 100755 --- a/build/bin/mergetool.py +++ b/build/bin/mergetool.py @@ -79,12 +79,10 @@ def listChangedFiles(): changed = [] for line in lines: # Remove trailing newline - line = line.rstrip() - print line - + line = line[:-1] + # Extract the file state and name - filestate = line[0:2].strip() - filename = line[7:].strip() + (filestate, filename) = re.split(r'[ \+]+', line) # Ignore files in build directory if (filename.startswith("build/merge/") \ @@ -543,8 +541,7 @@ def commandRevert(): line = line[:-1] # Extract the file state and name - filestate = line[0:2].strip() - filename = line[7:].strip() + (filestate, filename) = re.split(r'[ \+]+', line) # Ignore files in build directory if (filename.startswith("build/merge/") \ diff --git a/build/build.xml b/build/build.xml index 06bcd3fb79..ec50f34df7 100644 --- a/build/build.xml +++ b/build/build.xml @@ -186,9 +186,6 @@ <echo>Toolkit package is: ${toolkit-package}</echo> - <!-- Can run XEP only if license is available. --> - <available file="build/lib/XEP/license.xml" property="xep.license.available" /> - <!-- Create result dir unless already exists --> <mkdir dir="${result-path}" /> @@ -734,6 +731,11 @@ <echo>TEST TARGET CALLED</echo> </target> + <target name="remove-widgetset-gwt-tmp"> + <echo>Removing widgetset temp files</echo> + <delete dir="${output-dir}/WebContent/ITMILL/widgetsets/.gwt-tmp" includeemptydirs="true"/> + </target> + <target name="compile-widgetset-default"> <echo>Compiling src (client-side)</echo> <echo>com.itmill.toolkit.terminal.gwt.DefaultWidgetSet</echo> @@ -751,6 +753,7 @@ <pathelement location="${result-path}/src" /> </classpath> </java> + <antcall target="remove-widgetset-gwt-tmp"/> <echo>Compiled DefaultWidgetSet</echo> </target> @@ -780,6 +783,7 @@ <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> </classpath> </java> + <antcall target="remove-widgetset-gwt-tmp"/> <echo>Compiled ReservationWidgetSet</echo> </target> @@ -802,6 +806,7 @@ <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> </classpath> </java> + <antcall target="remove-widgetset-gwt-tmp"/> <echo>Compiled SamplerWidgetSet</echo> </target> @@ -823,7 +828,8 @@ <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> </classpath> </java> - <echo>Compiled SamplerWidgetSet</echo> + <antcall target="remove-widgetset-gwt-tmp"/> + <echo>Compiled CoverflowWidgetSet</echo> </target> <target name="compile-widgetset-colorpicker"> @@ -844,6 +850,7 @@ <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> </classpath> </java> + <antcall target="remove-widgetset-gwt-tmp"/> <echo>Compiled ColorPickerWidgetSet</echo> </target> @@ -965,6 +972,18 @@ <!-- Manual: Build from external repository. --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + <target name="manual-init"> + <!-- Can run XEP only if license is available. --> + <available file="build/lib/XEP/license.xml" property="xep.license.available" /> + + <!-- Path to installed XEP license. --> + <property name="xep.license.path.installed" value="/opt/RenderX/XEP/license.xml"/> + <echo>XEP license expected to be installed as ${xep.license.path.installed}</echo> + + <!-- Can copy XEP license only if it is available. --> + <available file="${xep.license.path.installed}" property="xep.license.installed"/> + </target> + <!-- Checkout doc repository. --> <target name="manual-checkout" unless="docdir"> <mkdir dir="${checkout-path}"/> @@ -976,13 +995,15 @@ </exec> <property name="docdir" value="${checkout-path}/doc"/> + </target> - <!-- If we have a XEP license, copy it to proper place. --> - <copy file="/opt/RenderX/XEP/license.xml" todir="${docdir}/build/lib/XEP"/> + <!-- If the XEP is installed, copy it to proper place. --> + <target name="xep-license-copy" if="xep.license.installed"> + <copy file="${xep.license.path.installed}" todir="${docdir}/build/lib/XEP"/> </target> <!-- Build manual. --> - <target name="manual-build"> + <target name="manual-build" depends="xep-license-copy"> <ant dir="${docdir}" antfile="build/build.xml" inheritAll="false"> <property name="version" value="${version}"/> </ant> @@ -999,7 +1020,7 @@ </copy> </target> - <target name="manual" depends="init, manual-checkout, manual-build, manual-copy"> + <target name="manual" depends="init, manual-init, manual-checkout, manual-build, manual-copy"> </target> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> @@ -1110,7 +1131,7 @@ <echo>Installing ${output-dir}/WebContent/${lib-jar-name} to ${nightly.publish}</echo> <echo>Hopefully you have permissions for the copy operation with SSH.</echo> - <!-- The test task will need this. --> + <!-- Only Linux tests allowed. TODO: Generalize this. --> <property name="package.linux.filename" value="${result-path}/${product-file}-${package-platform}-${version}.tar.gz"/> <!-- Copy the linux installation package and the JAR. --> @@ -1127,16 +1148,37 @@ <target name="nightly-install" depends="nightly-teamcity-publish, nightly-download-publish"> </target> - <target name="testingtools-test"> - <!-- Run the separate test script. --> - <ant antfile="build/testing/test.xml" inheritall="true"> - </ant> - </target> - <!-- ================================================================== --> <!-- Automated tests. --> <!-- ================================================================== --> + <target name="tests" depends="ant-tests, testingtools-tests"> + </target> + + <target name="testingtools-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."/> + + <!-- Parameters for the test.xml script. --> + <fail unless="testingtools.tester.host" message="The 'testingtools.tester.host' property must be defined."/> + <fail unless="testingtools.deployment.url" message="The 'testingtools.deployment.url' property must be defined."/> + + <property name="package.platform.name" value="${product-file}-${package-platform}-${version}"/> + + <!-- Only Linux tests allowed. TODO: Generalize this. --> + <property name="package.linux.filename" value="${result-path}/${package.platform.name}.tar.gz"/> + + <!-- Run the separate test script. --> + <ant antfile="tests/test.xml" target="test-package" inheritall="false" inheritrefs="true"> + <property name="package.filename" value="${package.linux.filename}"/> + <property name="testing.testarea" value="/tmp/testarea"/> + <property name="package.name" value="${package.platform.name}"/> + <property name="testingtools.tester.host" value="${testingtools.tester.host}"/> + <property name="testingtools.deployment.url" value="${testingtools.deployment.url}"/> + </ant> + </target> + <target name="ant-tests"> <echo>##teamcity[testSuiteStarted name='com.itmill.toolkit.tests.test-framework']</echo> diff --git a/build/package/start.sh b/build/package/start.sh index 448d318415..febda97e4c 100644 --- a/build/package/start.sh +++ b/build/package/start.sh @@ -4,4 +4,4 @@ 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.itmill.toolkit.launcher.ITMillToolkitDesktopMode +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.itmill.toolkit.launcher.ITMillToolkitDesktopMode $ITMILLTOOLKIT_PARAMETERS |