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

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