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 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. <include file="${basedir}/gwt-files.xml" />
  4. <property name="gwt.dev.classes" location="${gwt.eclipse.basedir}/dev/bin" />
  5. <property name="gwt.user.classes" location="${gwt.eclipse.basedir}/user/bin" />
  6. <property name="gwt.dev.src" location="${gwt.basedir}/dev/core/src" />
  7. <property name="gwt.dev.super.src" location="${gwt.basedir}/dev/core/super" />
  8. <property name="gwt.user.src" location="${gwt.basedir}/user/src" />
  9. <property name="gwt.user.super.src" location="${gwt.basedir}/user/super" />
  10. <property name="work.dir" location="work" />
  11. <property name="theme-version" location="9.9.9.INTERNAL-DEBUG-BUILD" />
  12. <echo>Using gwt files from ${gwt.user.classes} and ${gwt.dev.classes}</echo>
  13. <ivy:resolve file="client-compiler/ivy.xml" conf="ide" />
  14. <ivy:cachepath pathid="client-compiler.deps" conf="ide" />
  15. <ivy:resolve file="server/ivy.xml" conf="ide" />
  16. <ivy:cachepath pathid="server.deps" conf="ide" />
  17. <ivy:resolve file="client/ivy.xml" conf="ide" />
  18. <ivy:cachepath pathid="client.deps" conf="ide" />
  19. <ivy:resolve file="shared/ivy.xml" conf="ide" />
  20. <ivy:cachepath pathid="shared.deps" conf="ide" />
  21. <ivy:resolve file="uitest/ivy.xml" conf="ide" />
  22. <ivy:cachepath pathid="uitest.deps" conf="ide" />
  23. <ivy:resolve file="theme-compiler/ivy.xml" conf="ide" />
  24. <ivy:cachepath pathid="theme-compiler.deps" conf="ide" />
  25. <path id="classpath">
  26. <path location="bin" />
  27. <path location="build/classes" />
  28. <path location="${gwt.user.classes}" />
  29. <path location="${gwt.user.src}" />
  30. <path location="${gwt.user.super.src}" />
  31. <path location="${gwt.dev.classes}" />
  32. <path location="${gwt.dev.super.src}" />
  33. <path location="${gwt.dev.src}" />
  34. <path refid="client-compiler.deps" />
  35. <path refid="theme-compiler.deps" />
  36. <path refid="server.deps" />
  37. <path refid="shared.deps" />
  38. <path refid="uitest.deps" />
  39. <path refid="client.deps" />
  40. <path location="theme-compiler/src" />
  41. <path location="server/src" />
  42. <path location="shared/src" />
  43. <path location="uitest/src" />
  44. <path location="client/src" />
  45. </path>
  46. <target name="theme-and-default-widgetset" depends="default-widgetset, themes, vaadinPush.js">
  47. </target>
  48. <target name="themes">
  49. <antcall target="compile-theme">
  50. <param name="theme" value="base" />
  51. </antcall>
  52. <antcall target="compile-theme">
  53. <param name="theme" value="runo" />
  54. </antcall>
  55. <antcall target="compile-theme">
  56. <param name="theme" value="reindeer" />
  57. </antcall>
  58. <antcall target="compile-theme">
  59. <param name="theme" value="chameleon" />
  60. </antcall>
  61. <antcall target="compile-theme">
  62. <param name="theme" value="liferay" />
  63. </antcall>
  64. </target>
  65. <target name="compile-theme">
  66. <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
  67. <classpath refid="classpath" />
  68. <jvmarg value="-Djava.awt.headless=true" />
  69. <arg value="--theme" />
  70. <arg value="${theme}" />
  71. <arg value="--theme-version" />
  72. <arg value="${theme-version}" />
  73. <arg value="--theme-folder" />
  74. <arg value="WebContent/VAADIN/themes" />
  75. </java>
  76. </target>
  77. <target name="default-widgetset">
  78. <antcall target="compile-widgetset">
  79. <param name="widgetset" value="com.vaadin.DefaultWidgetSet" />
  80. </antcall>
  81. </target>
  82. <target name="testing-widgetset">
  83. <antcall target="compile-widgetset">
  84. <param name="widgetset" value="com.vaadin.tests.widgetset.TestingWidgetSet" />
  85. </antcall>
  86. </target>
  87. <target name="compile-widgetset">
  88. <property name="module" value="${widgetset}" />
  89. <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
  90. <property name="style" value="PRETTY" />
  91. <property name="localWorkers" value="2" />
  92. <property name="extraParams" value="" />
  93. <mkdir dir="${module.output.dir}" />
  94. <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel TRACE -style ${style} -localWorkers ${localWorkers} -strict ${extraParams}</echo>
  95. <!--<ivy:resolve inline="true" organisation="javax.validation" module="validation-api" revision="1.0.0.GA"/>-->
  96. <!-- compile the module -->
  97. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
  98. <arg value="-workDir" />
  99. <arg value="${work.dir}" />
  100. <arg value="-logLevel" />
  101. <arg value="TRACE" />
  102. <arg value="-war" />
  103. <arg value="${module.output.dir}" />
  104. <arg value="-style" />
  105. <arg value="${style}" />
  106. <arg value="-localWorkers" />
  107. <arg value="${localWorkers}" />
  108. <arg value="-strict" />
  109. <arg line="${extraParams}" />
  110. <arg value="${module}" />
  111. <sysproperty key="vFailIfNotSerializable" value="true" />
  112. <jvmarg value="-Xss8M" />
  113. <jvmarg value="-XX:MaxPermSize=256M" />
  114. <jvmarg value="-Djava.awt.headless=true" />
  115. <jvmarg value="-Dgwt.usearchives=false" />
  116. </java>
  117. </target>
  118. <target name="vaadinPush.js">
  119. <property name="vaadinPush.js.output" location="WebContent/VAADIN/vaadinPush.js" />
  120. <loadfile srcfile="WebContent/VAADIN/jquery-1.7.2.js" property="jquery.js.contents" />
  121. <loadfile srcfile="WebContent/VAADIN/jquery.atmosphere.js" property="jquery.atmosphere.js.contents" />
  122. <loadfile srcfile="WebContent/VAADIN/vaadinPush.js.tpl" property="vaadinPush.js.contents">
  123. <filterchain>
  124. <replacetokens begintoken="@" endtoken="@">
  125. <token key="jquery.js" value="${jquery.js.contents}" />
  126. <token key="jquery.atmosphere.js" value="${jquery.atmosphere.js.contents}" />
  127. </replacetokens>
  128. </filterchain>
  129. </loadfile>
  130. <echo file="${vaadinPush.js.output}">${vaadinPush.js.contents}</echo>
  131. </target>
  132. </project>