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

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