Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ide.xml 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. <property name="work.dir" location="work" />
  4. <property file="build.properties" />
  5. <!-- Setting this to 0 disables the parallel compilation -->
  6. <property name="threadsPerProcessor" value="1" />
  7. <target name="resolve" unless="resolve.done">
  8. <ivy:resolve log="download-only" file="client-compiler/ivy.xml" conf="ide" />
  9. <ivy:cachepath pathid="client-compiler.deps" conf="ide" />
  10. <ivy:resolve log="download-only" file="server/ivy.xml" conf="ide" />
  11. <ivy:cachepath pathid="server.deps" conf="ide" />
  12. <ivy:resolve log="download-only" file="client/ivy.xml" conf="ide" />
  13. <ivy:cachepath pathid="client.deps" conf="ide" />
  14. <ivy:resolve log="download-only" file="shared/ivy.xml" conf="ide" />
  15. <ivy:cachepath pathid="shared.deps" conf="ide" />
  16. <ivy:resolve log="download-only" file="uitest/ivy.xml" conf="ide" />
  17. <ivy:cachepath pathid="uitest.deps" conf="ide" />
  18. <ivy:resolve log="download-only" file="buildhelpers/ivy.xml" />
  19. <ivy:cachepath pathid="buildhelpers.deps" />
  20. <ivy:resolve log="download-only" file="gwt/ivy.xml" conf="ide" />
  21. <ivy:cachepath pathid="gwt.deps" conf="ide" />
  22. <path id="classpath">
  23. <path location="bin" />
  24. <path location="build/classes" />
  25. <path refid="client-compiler.deps" />
  26. <path refid="server.deps" />
  27. <path refid="shared.deps" />
  28. <path refid="client.deps" />
  29. <path refid="buildhelpers.deps" />
  30. <path refid="gwt.deps" />
  31. <path refid="uitest.deps" />
  32. <path location="server/src/main/java" />
  33. <path location="shared/src/main/java" />
  34. <path location="shared/src/main/java-templates" />
  35. <path location="uitest/src" />
  36. <path location="client/src/main/java" />
  37. </path>
  38. <property name="resolve.done" value="true" />
  39. </target>
  40. <target name="theme-and-default-widgetset" depends="resolve">
  41. <!-- threadCount is ignored unless threadsPerProcessor is 0 -->
  42. <parallel threadsPerProcessor="${threadsPerProcessor}" threadCount="1">
  43. <antcall target="default-widgetset" inheritRefs="true" />
  44. <antcall target="themes" inheritRefs="true" />
  45. <antcall target="vaadinPush.js" inheritRefs="true" />
  46. </parallel>
  47. </target>
  48. <target name="themes" depends="resolve">
  49. <!-- threadCount is ignored unless threadsPerProcessor is 0 -->
  50. <parallel threadsPerProcessor="${threadsPerProcessor}" threadCount="1">
  51. <antcall target="compile-theme" inheritRefs="true">
  52. <param name="theme" value="base" />
  53. </antcall>
  54. <antcall target="compile-theme" inheritRefs="true">
  55. <param name="theme" value="runo" />
  56. </antcall>
  57. <antcall target="compile-theme" inheritRefs="true">
  58. <param name="theme" value="reindeer" />
  59. </antcall>
  60. <antcall target="compile-theme" inheritRefs="true">
  61. <param name="theme" value="chameleon" />
  62. </antcall>
  63. <antcall target="compile-theme" inheritRefs="true">
  64. <param name="theme" value="liferay" />
  65. </antcall>
  66. <antcall target="compile-theme" inheritRefs="true">
  67. <param name="theme" value="valo" />
  68. </antcall>
  69. <antcall target="compile-theme" inheritRefs="true">
  70. <param name="theme" value="tests-valo" />
  71. </antcall>
  72. <antcall target="compile-theme" inheritRefs="true">
  73. <param name="theme" value="tests-valo-dark" />
  74. </antcall>
  75. <antcall target="compile-theme" inheritRefs="true">
  76. <param name="theme" value="tests-valo-metro" />
  77. </antcall>
  78. <antcall target="compile-theme" inheritRefs="true">
  79. <param name="theme" value="tests-valo-flat" />
  80. </antcall>
  81. <antcall target="compile-theme" inheritRefs="true">
  82. <param name="theme" value="tests-valo-flatdark" />
  83. </antcall>
  84. <antcall target="compile-theme" inheritRefs="true">
  85. <param name="theme" value="tests-valo-facebook" />
  86. </antcall>
  87. <antcall target="compile-theme" inheritRefs="true">
  88. <param name="theme" value="tests-valo-blueprint" />
  89. </antcall>
  90. <antcall target="compile-theme" inheritRefs="true">
  91. <param name="theme" value="tests-valo-light" />
  92. </antcall>
  93. <antcall target="compile-theme" inheritRefs="true">
  94. <param name="theme" value="tests-valo-disabled-animations" />
  95. </antcall>
  96. <antcall target="compile-theme" inheritRefs="true">
  97. <param name="theme" value="tests-valo-no-font-awesome" />
  98. </antcall>
  99. </parallel>
  100. </target>
  101. <target name="compile-theme" depends="resolve">
  102. <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
  103. <classpath refid="classpath" />
  104. <jvmarg value="-Djava.awt.headless=true" />
  105. <arg value="--theme" />
  106. <arg value="${theme}" />
  107. <arg value="--theme-folder" />
  108. <arg value="WebContent/VAADIN/themes" />
  109. <arg value="--version" />
  110. <arg value="${vaadin.version}" />
  111. </java>
  112. </target>
  113. <target name="default-widgetset">
  114. <antcall target="compile-widgetset" inheritRefs="true">
  115. <param name="widgetset" value="com.vaadin.DefaultWidgetSet" />
  116. </antcall>
  117. </target>
  118. <target name="testing-widgetset">
  119. <antcall target="compile-widgetset" inheritRefs="true">
  120. <param name="widgetset" value="com.vaadin.tests.widgetset.TestingWidgetSet" />
  121. </antcall>
  122. </target>
  123. <target name="compile-widgetset" depends="resolve">
  124. <property name="module" value="${widgetset}" />
  125. <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
  126. <property name="logLevel" value="TRACE" />
  127. <property name="style" value="PRETTY" />
  128. <property name="localWorkers" value="2" />
  129. <!-- Whether assertions should be compiled into the widgetset.
  130. Either "-ea" to enable or "" to disable. -->
  131. <property name="assertions" value="-ea" />
  132. <property name="extraParams" value="" />
  133. <property name="gwt.usearchives" value="true" />
  134. <property name="gwt.persistentunitcache" value="false" />
  135. <mkdir dir="${module.output.dir}" />
  136. <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel ${logLevel} -style ${style} -localWorkers ${localWorkers} ${assertions} -strict ${extraParams}</echo>
  137. <!--<ivy:resolve log="download-only" inline="true" organisation="javax.validation" module="validation-api"
  138. revision="1.0.0.GA"/> -->
  139. <!-- compile the module -->
  140. <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
  141. <arg value="-workDir" />
  142. <arg value="${work.dir}" />
  143. <arg value="-logLevel" />
  144. <arg value="${logLevel}" />
  145. <arg value="-war" />
  146. <arg value="${module.output.dir}" />
  147. <arg value="-style" />
  148. <arg value="${style}" />
  149. <arg value="-localWorkers" />
  150. <arg value="${localWorkers}" />
  151. <arg line="${assertions}" />
  152. <arg value="-strict" />
  153. <arg line="${extraParams}" />
  154. <arg value="${module}" />
  155. <sysproperty key="vFailIfNotSerializable" value="true" />
  156. <jvmarg value="-Xss8M" />
  157. <jvmarg value="-Xmx1G" />
  158. <jvmarg value="-XX:MaxPermSize=256M" />
  159. <jvmarg value="-Djava.awt.headless=true" />
  160. <jvmarg value="-Dgwt.usearchives=${gwt.usearchives}" />
  161. <jvmarg value="-Dgwt.persistentunitcache=${gwt.persistentunitcache}" />
  162. </java>
  163. </target>
  164. <target name="vaadinPush.js" depends="resolve">
  165. <property name="project.root" location="."/>
  166. <ivy:resolve log="download-only" file="${project.root}/ivy-taskdefs.xml" conf="taskdefs" />
  167. <ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" />
  168. <!-- ant contrib for Maven integration -->
  169. <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" />
  170. <!-- Must fork to avoid ExitException -->
  171. <artifact:mvn pom="${project.root}/push/pom.xml" fork="true" mavenVersion="3.0.4">
  172. <arg value="package"/>
  173. </artifact:mvn>
  174. <property name="js.output.dir" location="WebContent" />
  175. <property name="push.js.dir" location="${basedir}/push/target/classes/" />
  176. <copy todir="${js.output.dir}">
  177. <fileset dir="${push.js.dir}" includes="VAADIN/vaadinPush*" excludes="**/*.gz">
  178. </fileset>
  179. </copy>
  180. </target>
  181. <target name="clean-unitcache">
  182. <delete dir="WebContent/VAADIN/gwt-unitCache" />
  183. </target>
  184. </project>