| 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" /> |
| 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"> |