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.

ide.xml 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0"?>
  2. <project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:ivy="antlib:org.apache.ivy.ant" name="Build script for IDE users" basedir=".." default="theme-and-default-widgetset">
  3. <!-- FIXME, should use 7.0-SNAPSHOT of client compiler -->
  4. <property name="work.dir" location="work" />
  5. <property name="gwt.root" location="${basedir}/../trunk" />
  6. <property name="gwt.lib.dir" location="${gwt.root}/build/lib" />
  7. <property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
  8. <property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
  9. <property name="theme-version" location="9.9.9.INTERNAL-DEBUG-BUILD" />
  10. <echo>Using gwt-dev.jar from ${gwt.dev.jar}</echo>
  11. <ivy:resolve file="build/ivy-ide.xml" />
  12. <ivy:cachepath pathid="ivy.deps" conf="default" />
  13. <path id="classpath">
  14. <pathelement location="${gwt.user.jar}" />
  15. <pathelement location="${gwt.dev.jar}" />
  16. <path refid="ivy.deps" />
  17. <path location="bin" />
  18. <path location="build/classes" />
  19. <path location="server/src" />
  20. <path location="shared/src" />
  21. <path location="uitest/src" />
  22. <path location="client/src" />
  23. </path>
  24. <target name="theme-and-default-widgetset" depends="default-widgetset, themes">
  25. </target>
  26. <target name="themes">
  27. <antcall target="compile-theme">
  28. <param name="theme" value="base" />
  29. </antcall>
  30. <antcall target="compile-theme">
  31. <param name="theme" value="runo" />
  32. </antcall>
  33. <antcall target="compile-theme">
  34. <param name="theme" value="reindeer" />
  35. </antcall>
  36. <antcall target="compile-theme">
  37. <param name="theme" value="chameleon" />
  38. </antcall>
  39. <antcall target="compile-theme">
  40. <param name="theme" value="liferay" />
  41. </antcall>
  42. </target>
  43. <target name="compile-theme">
  44. <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
  45. <classpath refid="classpath" />
  46. <jvmarg value="-Djava.awt.headless=true" />
  47. <arg value="--theme" />
  48. <arg value="${theme}" />
  49. <arg value="--theme-version" />
  50. <arg value="${theme-version}" />
  51. <arg value="--theme-folder" />
  52. <arg value="WebContent/VAADIN/themes" />
  53. </java>
  54. </target>
  55. <target name="default-widgetset">
  56. <property name="module" value="com.vaadin.DefaultWidgetSet" />
  57. <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
  58. <property name="style" value="PRETTY" />
  59. <property name="localWorkers" value="2" />
  60. <property name="extraParams" value="" />
  61. <mkdir dir="${module.output.dir}" />
  62. <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel TRACE -style ${style} -localWorkers ${localWorkers} -strict ${extraParams}</echo>
  63. <!--<ivy:resolve inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA"/>-->
  64. <!-- compile the module -->
  65. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
  66. <arg value="-workDir" />
  67. <arg value="${work.dir}" />
  68. <arg value="-logLevel" />
  69. <arg value="TRACE" />
  70. <arg value="-war" />
  71. <arg value="${module.output.dir}" />
  72. <arg value="-style" />
  73. <arg value="${style}" />
  74. <arg value="-localWorkers" />
  75. <arg value="${localWorkers}" />
  76. <arg value="-strict" />
  77. <arg line="${extraParams}" />
  78. <arg value="${module}" />
  79. <sysproperty key="vFailIfNotSerializable" value="true" />
  80. <jvmarg value="-Xss8M" />
  81. <jvmarg value="-XX:MaxPermSize=256M" />
  82. <jvmarg value="-Djava.awt.headless=true" />
  83. </java>
  84. </target>
  85. </project>