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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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="classes" location="bin" />
  5. <property name="work.dir" location="work" />
  6. <property name="gwt.root" location="${basedir}/../trunk" />
  7. <property name="gwt.lib.dir" location="${gwt.root}/build/lib" />
  8. <property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
  9. <property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
  10. <echo>Using gwt-dev.jar from ${gwt.dev.jar}</echo>
  11. <ivy:cachepath pathid="ivy.deps" inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA" conf="default,sources" />
  12. <ivy:cachepath pathid="ivy.deps2" inline="true" organisation="commons-cli" module="commons-cli" revision="1.2" 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 refid="ivy.deps2" />
  18. <path location="${classes}" />
  19. <path location="server/src" />
  20. <path location="shared/src" />
  21. <path location="client/src" />
  22. </path>
  23. <target name="theme-and-default-widgetset" depends="default-widgetset, themes">
  24. </target>
  25. <target name="themes">
  26. <antcall target="compile-theme">
  27. <param name="theme" value="base" />
  28. </antcall>
  29. <antcall target="compile-theme">
  30. <param name="theme" value="runo" />
  31. </antcall>
  32. <antcall target="compile-theme">
  33. <param name="theme" value="reindeer" />
  34. </antcall>
  35. <antcall target="compile-theme">
  36. <param name="theme" value="chameleon" />
  37. </antcall>
  38. <antcall target="compile-theme">
  39. <param name="theme" value="liferay" />
  40. </antcall>
  41. </target>
  42. <target name="compile-theme">
  43. <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
  44. <classpath refid="classpath" />
  45. <jvmarg value="-Djava.awt.headless=true" />
  46. <arg value="--theme" />
  47. <arg value="${theme}" />
  48. <arg value="--theme-folder" />
  49. <arg value="WebContent/VAADIN/themes" />
  50. </java>
  51. </target>
  52. <target name="default-widgetset">
  53. <property name="module" value="com.vaadin.DefaultWidgetSet" />
  54. <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
  55. <property name="style" value="PRETTY" />
  56. <property name="localWorkers" value="2" />
  57. <property name="extraParams" value="" />
  58. <mkdir dir="${module.output.dir}" />
  59. <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel TRACE -style ${style} -localWorkers ${localWorkers} -strict ${extraParams}</echo>
  60. <!--<ivy:resolve inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA"/>-->
  61. <!-- compile the module -->
  62. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
  63. <arg value="-workDir" />
  64. <arg value="${work.dir}" />
  65. <arg value="-logLevel" />
  66. <arg value="TRACE" />
  67. <arg value="-war" />
  68. <arg value="${module.output.dir}" />
  69. <arg value="-style" />
  70. <arg value="${style}" />
  71. <arg value="-localWorkers" />
  72. <arg value="${localWorkers}" />
  73. <arg value="-strict" />
  74. <arg line="${extraParams}" />
  75. <arg value="${module}" />
  76. <sysproperty key="vFailIfNotSerializable" value="true" />
  77. <jvmarg value="-Xss8M" />
  78. <jvmarg value="-XX:MaxPermSize=256M" />
  79. <jvmarg value="-Djava.awt.headless=true" />
  80. </java>
  81. </target>
  82. </project>