Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ide.xml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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="buildhelpers/ivy.xml" />
  23. <ivy:cachepath pathid="buildhelpers.deps" />
  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="server.deps" />
  35. <path refid="shared.deps" />
  36. <path refid="uitest.deps" />
  37. <path refid="client.deps" />
  38. <path refid="buildhelpers.deps" />
  39. <path location="server/src" />
  40. <path location="shared/src" />
  41. <path location="uitest/src" />
  42. <path location="client/src" />
  43. </path>
  44. <target name="theme-and-default-widgetset" depends="default-widgetset, themes, vaadinPush.js">
  45. </target>
  46. <target name="themes">
  47. <antcall target="compile-theme">
  48. <param name="theme" value="base" />
  49. </antcall>
  50. <antcall target="compile-theme">
  51. <param name="theme" value="runo" />
  52. </antcall>
  53. <antcall target="compile-theme">
  54. <param name="theme" value="reindeer" />
  55. </antcall>
  56. <antcall target="compile-theme">
  57. <param name="theme" value="chameleon" />
  58. </antcall>
  59. <antcall target="compile-theme">
  60. <param name="theme" value="liferay" />
  61. </antcall>
  62. </target>
  63. <target name="compile-theme">
  64. <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
  65. <classpath refid="classpath" />
  66. <jvmarg value="-Djava.awt.headless=true" />
  67. <arg value="--theme" />
  68. <arg value="${theme}" />
  69. <arg value="--theme-folder" />
  70. <arg value="WebContent/VAADIN/themes" />
  71. <arg value="--version" />
  72. <arg value="${vaadin.version}" />
  73. </java>
  74. </target>
  75. <target name="default-widgetset">
  76. <antcall target="compile-widgetset">
  77. <param name="widgetset" value="com.vaadin.DefaultWidgetSet" />
  78. </antcall>
  79. </target>
  80. <target name="testing-widgetset">
  81. <antcall target="compile-widgetset">
  82. <param name="widgetset" value="com.vaadin.tests.widgetset.TestingWidgetSet" />
  83. </antcall>
  84. </target>
  85. <target name="compile-widgetset">
  86. <property name="module" value="${widgetset}" />
  87. <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
  88. <property name="style" value="PRETTY" />
  89. <property name="localWorkers" value="2" />
  90. <property name="extraParams" value="" />
  91. <mkdir dir="${module.output.dir}" />
  92. <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel TRACE -style ${style} -localWorkers ${localWorkers} -strict ${extraParams}</echo>
  93. <!--<ivy:resolve log="download-only" inline="true" organisation="javax.validation" module="validation-api"
  94. revision="1.0.0.GA"/> -->
  95. <!-- compile the module -->
  96. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
  97. <arg value="-workDir" />
  98. <arg value="${work.dir}" />
  99. <arg value="-logLevel" />
  100. <arg value="TRACE" />
  101. <arg value="-war" />
  102. <arg value="${module.output.dir}" />
  103. <arg value="-style" />
  104. <arg value="${style}" />
  105. <arg value="-localWorkers" />
  106. <arg value="${localWorkers}" />
  107. <arg value="-strict" />
  108. <arg line="${extraParams}" />
  109. <arg value="${module}" />
  110. <sysproperty key="vFailIfNotSerializable" value="true" />
  111. <jvmarg value="-Xss8M" />
  112. <jvmarg value="-XX:MaxPermSize=256M" />
  113. <jvmarg value="-Djava.awt.headless=true" />
  114. <jvmarg value="-Dgwt.usearchives=false" />
  115. <jvmarg value="-Dgwt.persistentunitcache=false" />
  116. </java>
  117. </target>
  118. <target name="vaadinPush.js">
  119. <ant antfile="${basedir}/push/build.xml" target="vaadinPush.js" dir="${basedir}/push" />
  120. <property name="js.output.dir" location="WebContent" />
  121. <property name="push.js.dir" location="${basedir}/push/result/js" />
  122. <copy todir="${js.output.dir}">
  123. <fileset dir="${push.js.dir}" includes="VAADIN/vaadinPush*">
  124. </fileset>
  125. </copy>
  126. </target>
  127. </project>