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.

build.xml 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0"?>
  2. <project name="vaadin-themes" basedir="." default="publish-local"
  3. xmlns:ivy="antlib:org.apache.ivy.ant">
  4. <description>
  5. Themes compiled to CSS
  6. </description>
  7. <include file="../common.xml" as="common" />
  8. <include file="../build.xml" as="vaadin" />
  9. <include file="../gwt-files.xml" as="gwtfiles" />
  10. <!-- global properties -->
  11. <property name="module.name" value="vaadin-themes" />
  12. <property name="module.symbolic" value="com.vaadin.themes" />
  13. <property name="result.dir" value="result" />
  14. <property name="theme.result.dir" value="${result.dir}/VAADIN/themes/" />
  15. <union id="jar.includes">
  16. <fileset dir="${result.dir}">
  17. <include name="VAADIN/themes/**" />
  18. </fileset>
  19. </union>
  20. <target name="compile-themes">
  21. <ivy:resolve resolveid="common" conf="build" />
  22. <ivy:cachepath pathid="classpath.compile.theme"
  23. conf="build" />
  24. <antcall target="compile-theme">
  25. <param name="theme" value="base" />
  26. </antcall>
  27. <antcall target="compile-theme">
  28. <param name="theme" value="runo" />
  29. </antcall>
  30. <antcall target="compile-theme">
  31. <param name="theme" value="reindeer" />
  32. </antcall>
  33. <antcall target="compile-theme">
  34. <param name="theme" value="chameleon" />
  35. </antcall>
  36. <antcall target="compile-theme">
  37. <param name="theme" value="liferay" />
  38. </antcall>
  39. </target>
  40. <target name="jar" depends="compile-themes">
  41. <antcall target="common.jar">
  42. <param name="osgi.extra.package.prefixes" value="VAADIN/themes" />
  43. <reference torefid="extra.jar.includes" refid="jar.includes" />
  44. </antcall>
  45. </target>
  46. <target name="copy-theme">
  47. <fail unless="theme"
  48. message="You must give the theme name to copy n the 'theme' parameter" />
  49. <property name="theme.source.dir" location="../WebContent/VAADIN/themes" />
  50. <copy todir="${theme.result.dir}">
  51. <fileset dir="${theme.source.dir}">
  52. <include name="${theme}/**" />
  53. </fileset>
  54. </copy>
  55. </target>
  56. <target name="compile-theme" depends="copy-theme">
  57. <fail unless="theme"
  58. message="You must give the theme name to compile in the 'theme' parameter" />
  59. <ivy:resolve resolveid="common" conf="compile-theme" />
  60. <ivy:cachepath pathid="classpath.compile.theme"
  61. conf="compile-theme" />
  62. <ivy:cachepath pathid="classpath.runtime.theme"
  63. conf="build" />
  64. <echo>Compiling ${theme}</echo>
  65. <mkdir dir="${theme.result.dir}" />
  66. <!-- compile the theme -->
  67. <java classname="com.vaadin.buildhelpers.CompileTheme"
  68. classpathref="classpath.compile.theme" failonerror="yes"
  69. fork="yes" maxmemory="512m">
  70. <arg value="--theme" />
  71. <arg value="${theme}" />
  72. <arg value="--theme-folder" />
  73. <arg value="${theme.result.dir}" />
  74. <arg value="--theme-version" />
  75. <arg value="${vaadin.version}" />
  76. <jvmarg value="-Xss8M" />
  77. <jvmarg value="-XX:MaxPermSize=256M" />
  78. <jvmarg value="-Djava.awt.headless=true" />
  79. </java>
  80. </target>
  81. <target name="publish-local" depends="jar">
  82. <antcall target="common.publish-local">
  83. </antcall>
  84. </target>
  85. <target name="clean">
  86. <antcall target="common.clean" />
  87. </target>
  88. <target name="checkstyle">
  89. <echo>No java files in module</echo>
  90. </target>
  91. <target name="test" depends="checkstyle">
  92. <!--<antcall target="common.test.run" /> -->
  93. <echo>WHAT? No tests for ${module.name}!</echo>
  94. </target>
  95. </project>