Changeset 4975 for branches

Show
Ignore:
Timestamp:
06/30/08 11:54:50 (6 months ago)
Author:
magi@…
Message:

Some files missing from the [4973] mass merge commit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/5.2/build/build.xml

    r4918 r4975  
    2222        See build.properties to define path where your gwt installation is located. 
    2323        You must unpack platform specific binaries under linux, windows and mac directories. 
    24         ${gwt-dir}/${platform} (linux|windows|mac) are used for 
     24        ${gwt-dir}/${platform} (linux|windows|mac|mac_leopard) are used for 
    2525        a) compile WebContent/ITMILL/widgetsets 
    2626        b) creating platform specific release ZIP/TGZ packages. 
     
    4747        <target name="package-jar" depends="clean-all, init, libs" description="Create itmill-toolkit-x.y.z.jar file."> 
    4848        </target> 
    49          
     49 
    5050        <target name="package-war" depends="clean-all, init, build, docs, internal-package-mac, internal-package-war"> 
    5151        </target> 
     
    8686        </target> 
    8787 
    88         <!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - --> 
    89         <target name="init"> 
    90  
    91                 <property file="build/build.properties" /> 
    92                 <property file="build/VERSION.properties" /> 
    93                 <property file="build/html-style.properties" /> 
    94  
    95                 <!-- Can run XEP only if license is available. --> 
    96         <available file="build/lib/XEP/license.xml" property="xep.license.available"/> 
    97  
    98                 <!-- Create result dir unless already exists --> 
    99                 <mkdir dir="${result-path}" /> 
    100                 <!-- Find out which platform we are in --> 
     88        <!-- Find out which platform we are in --> 
     89        <target name="init-platform"> 
    10190                <if> 
    10291                        <contains string="${os.name}" substring="Windows" /> 
     
    114103                        <equals arg1="${os.name}" arg2="Mac OS X" /> 
    115104                        <then> 
    116                                 <property name="platform" value="mac" /> 
     105                                <if> 
     106                                        <contains string="${os.version}" substring="10.5." /> 
     107                                        <then> 
     108                                                <property name="platform" value="mac_leopard" /> 
     109                                        </then> 
     110                                        <else> 
     111                                                <property name="platform" value="mac" /> 
     112                                        </else> 
     113                                </if> 
    117114                        </then> 
    118115                </if> 
     116        </target> 
     117 
     118        <!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - --> 
     119        <target name="init" depends="init-platform"> 
     120 
     121                <property file="build/build.properties" /> 
     122                <property file="build/VERSION.properties" /> 
     123                <property file="build/html-style.properties" /> 
     124 
     125                <!-- Can run XEP only if license is available. --> 
     126                <available file="build/lib/XEP/license.xml" property="xep.license.available" /> 
     127 
     128                <!-- Create result dir unless already exists --> 
     129                <mkdir dir="${result-path}" /> 
     130 
    119131                <!-- required when compiling WebContent/ITMILL/widgetsets (and also Java server-side classes) --> 
    120                 <property name="lib-gwt-dev" value="gwt-dev-${platform}.jar" /> 
    121  
    122                 <echo>We are on ${platform} platform, using ${gwt-dir}/${platform}/${lib-gwt-dev}.</echo> 
     132                <if> 
     133                        <equals arg1="${platform}" arg2="mac_leopard" /> 
     134                        <then> 
     135                                <property name="lib-gwt-dev" value="gwt-dev-mac.jar" /> 
     136                        </then> 
     137                        <else> 
     138                                <property name="lib-gwt-dev" value="gwt-dev-${platform}.jar" /> 
     139                        </else> 
     140                </if> 
     141 
     142                <echo>We are on ${platform} platform (${os.name} ${os.version}), using ${gwt-dir}/${platform}/${lib-gwt-dev}.</echo> 
    123143 
    124144                <!-- Destination files --> 
     
    544564                        </fileset> 
    545565                </copy> 
    546         <copy todir="${output-dir}/WebContent/demo/lib"> 
    547             <fileset dir="lib"> 
    548                 <include name="portlet/**/*" /> 
    549             </fileset> 
    550         </copy> 
     566                <copy todir="${output-dir}/WebContent/demo/lib"> 
     567                        <fileset dir="lib"> 
     568                                <include name="portlet/**/*" /> 
     569                        </fileset> 
     570                </copy> 
    551571 
    552572                <!-- Add demo sources --> 
     
    586606                </copy> 
    587607                <java classname="com.itmill.toolkit.buildhelpers.PortletConfigurationGenerator" failonerror="yes" fork="yes" maxmemory="512m"> 
    588                     <arg value="${output-dir}/WebContent/WEB-INF" /> 
    589                     <arg value="com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet" /> 
    590                     <classpath> 
    591                         <pathelement location="build/buildhelpers/" /> 
    592                     </classpath> 
     608                        <arg value="${output-dir}/WebContent/WEB-INF" /> 
     609                        <arg value="com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet" /> 
     610                        <classpath> 
     611                                <pathelement location="build/buildhelpers/" /> 
     612                        </classpath> 
    593613                </java> 
    594614        </target> 
     
    606626                </javac> 
    607627        </target> 
    608          
    609         <target name="defaulttheme" > 
     628 
     629        <target name="defaulttheme"> 
    610630                <echo>Combining default themes css files</echo> 
    611631                <!-- ensure buildhelpers are compiled --> 
    612                 <javac source="1.4" target="1.4" srcdir="build/buildhelpers"/> 
     632                <javac source="1.4" target="1.4" srcdir="build/buildhelpers" /> 
    613633                <java classname="com.itmill.toolkit.buildhelpers.CompileDefaultTheme" failonerror="yes" fork="yes"> 
    614634                        <classpath> 
     
    618638        </target> 
    619639 
    620         <target name="compile-client-side" depends="webcontent"> 
    621                 <parallel> 
    622                         <sequential> 
    623                                 <echo>Compiling src (client-side)</echo> 
    624                                 <echo>com.itmill.toolkit.terminal.gwt.DefaultWidgetSet</echo> 
    625                                 <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
    626                                         <arg value="-out" /> 
    627                                         <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
    628                                         <arg value="com.itmill.toolkit.terminal.gwt.DefaultWidgetSet" /> 
    629                                         <arg value="-style" /> 
    630                                         <arg value="OBF" /> 
    631                                         <classpath> 
    632                                                 <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
    633                                                 <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
    634                                                 <pathelement location="${result-path}/src" /> 
    635                                         </classpath> 
    636                                 </java> 
    637                         </sequential> 
    638  
    639                         <sequential> 
    640                                 <echo>com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet</echo> 
    641                                 <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
    642                                         <arg value="-out" /> 
    643                                         <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
    644                                         <arg value="com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet" /> 
    645                                         <arg value="-style" /> 
    646                                         <arg value="OBF" /> 
    647                                         <classpath> 
    648                                                 <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
    649                                                 <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
    650                                                 <pathelement location="${result-path}/src" /> 
    651                                                 <!-- demo jars --> 
    652                                                 <pathelement location="${output-dir}/WebContent/demo/lib/reservr/googlemaps_gwt.jar" /> 
    653                                                 <!-- demo widgetset sources --> 
    654                                                 <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> 
    655                                         </classpath> 
    656                                 </java> 
    657                         </sequential> 
    658  
    659                         <sequential> 
    660                                 <echo>com.itmill.toolkit.demo.colorpicker.gwt.ColorPickerWidgetSet</echo> 
    661                                 <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
    662                                         <arg value="-out" /> 
    663                                         <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
    664                                         <arg value="com.itmill.toolkit.demo.colorpicker.gwt.ColorPickerWidgetSet" /> 
    665                                         <arg value="-style" /> 
    666                                         <arg value="OBF" /> 
    667                                         <classpath> 
    668                                                 <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
    669                                                 <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
    670                                                 <pathelement location="${result-path}/src" /> 
    671                                                 <!-- demo widgetset sources --> 
    672                                                 <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> 
    673                                         </classpath> 
    674                                 </java> 
    675                         </sequential> 
     640        <target name="testtarget"> 
     641                <echo>TEST TARGET CALLED</echo> 
     642        </target> 
     643 
     644        <target name="compile-widgetset-default"> 
     645                <echo>Compiling src (client-side)</echo> 
     646                <echo>com.itmill.toolkit.terminal.gwt.DefaultWidgetSet</echo> 
     647                <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
     648                        <arg value="-out" /> 
     649                        <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
     650                        <arg value="com.itmill.toolkit.terminal.gwt.DefaultWidgetSet" /> 
     651                        <arg value="-style" /> 
     652                        <arg value="OBF" /> 
     653                        <classpath> 
     654                                <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
     655                                <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
     656                                <pathelement location="${result-path}/src" /> 
     657                        </classpath> 
     658                </java> 
     659                <echo>Compiled DefaultWidgetSet</echo> 
     660        </target> 
     661 
     662        <target name="compile-widgetset-reserver"> 
     663                <condition property="googlemaps-jar" value="${output-dir}/WebContent/demo/lib/reservr/googlemaps_gwt.jar"> 
     664                        <available file="${output-dir}/WebContent/demo/lib/reservr/googlemaps_gwt.jar" /> 
     665                </condition> 
     666                <condition property="googlemaps-jar" value="lib/reservr/googlemaps_gwt.jar"> 
     667                        <available file="lib/reservr/googlemaps_gwt.jar" /> 
     668                </condition> 
     669                <echo>com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet</echo> 
     670                <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
     671                        <arg value="-out" /> 
     672                        <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
     673                        <arg value="com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet" /> 
     674                        <arg value="-style" /> 
     675                        <arg value="OBF" /> 
     676                        <classpath> 
     677                                <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
     678                                <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
     679                                <pathelement location="${result-path}/src" /> 
     680                                <!-- demo jars --> 
     681                                <pathelement location="${googlemaps-jar}" /> 
     682                                <!-- demo widgetset sources --> 
     683                                <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> 
     684                        </classpath> 
     685                </java> 
     686                <echo>Compiled ReservationWidgetSet</echo> 
     687        </target> 
     688 
     689        <target name="compile-widgetset-colorpicker"> 
     690                <echo>com.itmill.toolkit.demo.colorpicker.gwt.ColorPickerWidgetSet</echo> 
     691                <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m"> 
     692                        <arg value="-out" /> 
     693                        <arg value="${output-dir}/WebContent/ITMILL/widgetsets" /> 
     694                        <arg value="com.itmill.toolkit.demo.colorpicker.gwt.ColorPickerWidgetSet" /> 
     695                        <arg value="-style" /> 
     696                        <arg value="OBF" /> 
     697                        <classpath> 
     698                                <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> 
     699                                <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" /> 
     700                                <pathelement location="${result-path}/src" /> 
     701                                <!-- demo widgetset sources --> 
     702                                <pathelement path="${output-dir}/WebContent/WEB-INF/src" /> 
     703                        </classpath> 
     704                </java> 
     705                <echo>Compiled ColorPickerWidgetSet</echo> 
     706        </target> 
     707 
     708        <!-- Builds the client-side engine, i.e., the widgetsets in parallel. --> 
     709        <target name="compile-client-side"> 
     710                <echo>Compiling widget sets in parallel.</echo> 
     711                <parallel threadsperprocessor="1"> 
     712                        <subant antfile="build.xml" target="compile-widgetset-default" inheritall="true" buildpath="build" /> 
     713                        <subant antfile="build.xml" target="compile-widgetset-reserver" inheritall="true" buildpath="build" /> 
     714                        <subant antfile="build.xml" target="compile-widgetset-colorpicker" inheritall="true" buildpath="build" /> 
    676715                </parallel> 
    677716        </target> 
    678717 
    679         <target name="libs" depends="compile-java, compile-client-side"> 
     718        <!-- Definitions for building local components, i.e., not for an installation package. --> 
     719        <target name="init-nonpackage" depends="init-platform"> 
     720                <property file="build/VERSION.properties" /> 
     721 
     722                <!-- Definitions for building the client-side. --> 
     723                <property name="output-dir" value="." /> 
     724 
     725                <!-- The "result-path" simply contains the sources. --> 
     726                <property name="result-path" value="." /> 
     727 
     728                <!-- Path to GWT directory. TODO: This should be read from build.properties file. --> 
     729                <property name="gwt-dir" value="build/gwt" /> 
     730 
     731                <!-- required when compiling WebContent/ITMILL/widgetsets (and also Java server-side classes) --> 
     732                <property name="lib-gwt-dev" value="gwt-dev-${platform}.jar" /> 
     733 
     734                <echo>We are on ${platform} platform, using ${gwt-dir}/${platform}/${lib-gwt-dev}.</echo> 
     735                <echo>GWT dir:    ${gwt-dir}</echo> 
     736                <echo>Output dir: ${output-dir}</echo> 
     737        </target> 
     738 
     739        <!-- Builds all widgetsets locally, i.e., not for an installation package. --> 
     740        <target name="widgetsets" depends="init-nonpackage, compile-client-side"> 
     741        </target> 
     742 
     743        <!-- Builds the default widgetset locally, i.e., not for an installation package. --> 
     744        <target name="widgetset-default" depends="init-nonpackage, compile-widgetset-default"> 
     745        </target> 
     746 
     747        <!-- Builds the reservation widgetset locally, i.e., not for an installation package. --> 
     748        <target name="widgetset-reserver" depends="init-nonpackage, compile-widgetset-reserver"> 
     749        </target> 
     750 
     751        <!-- Builds the colorpicker widgetset locally, i.e., not for an installation package. --> 
     752        <target name="widgetset-colorpicker" depends="init-nonpackage, compile-widgetset-colorpicker"> 
     753        </target> 
     754 
     755        <target name="libs" depends="compile-java, webcontent, compile-client-side"> 
    680756                <echo>Creating libs (server-side) ${lib-jar-name}</echo> 
    681757                <!-- Create Toolkit JAR --> 
     
    731807                </copy> 
    732808        </target> 
    733          
     809 
    734810        <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    735811  Documentation  
     
    803879 
    804880        <!-- Build PDF manual from sources or just copy it. --> 
    805     <target name="manual-pdf" depends="build-manual-pdf, copy-manual-pdf"> 
    806     </target> 
    807          
     881        <target name="manual-pdf" depends="build-manual-pdf, copy-manual-pdf"> 
     882        </target> 
     883 
    808884        <!-- Just copy a prebuilt PDF manual. --> 
    809     <target name="copy-manual-pdf" unless="xep.license.available"> 
    810         <echo>PDF Manual: No XEP license available, just copy a prebuilt PDF.</echo> 
    811         <copy file="doc/manual/book.pdf" tofile="${output-dir}/WebContent/doc/manual.pdf" /> 
    812     </target> 
     885        <target name="copy-manual-pdf" unless="xep.license.available"> 
     886                <echo>PDF Manual: No XEP license available, just copy a prebuilt PDF.</echo> 
     887                <copy file="doc/manual/book.pdf" tofile="${output-dir}/WebContent/doc/manual.pdf" /> 
     888        </target> 
    813889 
    814890        <!-- XEP-based FO building --> 
     
    858934        </target> 
    859935 
    860         <target name="manual-html"> 
     936        <target name="manual-html" depends="init, preprocess-src"> 
    861937                <echo>Manual: HTML</echo> 
    862938                <delete file="build/docbook/conf/temp.xsl" />