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.5KB

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