You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0"?>
  2. <project name="vaadin-client-compiler" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant">
  3. <description>
  4. Compiled (JS+HTML) version of client side
  5. </description>
  6. <include file="../common.xml" as="common" />
  7. <include file="../build.xml" as="vaadin" />
  8. <include file="../gwt-files.xml" as="gwtfiles" />
  9. <!-- global properties -->
  10. <property name="module.name" value="vaadin-client-compiled" />
  11. <property name="result.dir" value="result" />
  12. <target name="default-widgetset">
  13. <antcall target="compile-module">
  14. <param name="module" value="com.vaadin.DefaultWidgetSet" />
  15. </antcall>
  16. </target>
  17. <target name="compile-module">
  18. <fail unless="module" message="You must give the module to compile in the 'module' parameter" />
  19. <property name="result.dir" location="result" />
  20. <property name="style" value="OBF" />
  21. <property name="localWorkers" value="2" />
  22. <property name="extraParams" value="" />
  23. <property name="module.output.dir" location="${result.dir}/VAADIN/widgetsets" />
  24. <ivy:resolve resolveid="common" conf="build" />
  25. <ivy:cachepath pathid="classpath.compile.widgetset" conf="build" />
  26. <echo>Compiling ${module} to ${module.output.dir}</echo>
  27. <mkdir dir="${module.output.dir}" />
  28. <!-- Disabled to reduce JAR size: precompile the widgetset to a .gwtar file -->
  29. <!--
  30. <java classname="com.google.gwt.dev.CompileModule" classpathref="compile.classpath.widgetset" failonerror="yes" fork="yes" maxmemory="512m">
  31. <arg value="-out" />
  32. <arg value="${result-precompiled-widgetsets}" />
  33. <arg value="-strict" />
  34. <arg value="${widgetset}" />
  35. <jvmarg value="-Xss8M"/>
  36. <jvmarg value="-XX:MaxPermSize=256M"/>
  37. <jvmarg value="-Djava.awt.headless=true"/>
  38. </java>
  39. -->
  40. <!-- compile the widgetset -->
  41. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath.compile.widgetset" failonerror="yes" fork="yes" maxmemory="512m">
  42. <arg value="-war" />
  43. <arg value="${module.output.dir}" />
  44. <arg value="-style" />
  45. <arg value="${style}" />
  46. <arg value="-localWorkers" />
  47. <arg value="${localWorkers}" />
  48. <arg value="-strict" />
  49. <arg line="${extraParams}" />
  50. <arg value="${module}" />
  51. <sysproperty key="vFailIfNotSerializable" value="true" />
  52. <jvmarg value="-Xss8M" />
  53. <jvmarg value="-XX:MaxPermSize=256M" />
  54. <jvmarg value="-Djava.awt.headless=true" />
  55. </java>
  56. <!--<antcall target="remove-gwt-tmp" />-->
  57. <echo>Compiled ${module}</echo>
  58. </target>
  59. <target name="jar" depends="default-widgetset">
  60. <property name="result.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" />
  61. <property name="module.output.dir" location="${result.dir}/VAADIN/widgetsets" />
  62. <jar file="${result.jar}" compress="true">
  63. <fileset dir="${module.output.dir}">
  64. </fileset>
  65. <fileset refid="common.files.for.all.jars" />
  66. </jar>
  67. </target>
  68. <target name="publish-local" depends="jar">
  69. <antcall target="common.publish-local" />
  70. </target>
  71. <target name="clean">
  72. <antcall target="common.clean" />
  73. </target>
  74. <target name="tests">
  75. <!--<antcall target="common.tests.run" />-->
  76. <echo>WHAT? No tests for ${module.name}!</echo>
  77. </target>
  78. </project>