Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. <exclude name="VAADIN/themes/*-tests*/**" />
  18. <exclude name="VAADIN/themes/tests-*/**" />
  19. </fileset>
  20. </union>
  21. <target name="compile-themes">
  22. <ivy:resolve log="download-only" resolveid="common" conf="build" />
  23. <ivy:cachepath pathid="classpath.compile.theme" 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. <antcall target="compile-theme">
  40. <param name="theme" value="valo" />
  41. </antcall>
  42. </target>
  43. <target name="jar" depends="compile-themes">
  44. <antcall target="common.jar">
  45. <param name="osgi.extra.package.prefixes" value="VAADIN/themes" />
  46. <reference torefid="extra.jar.includes" refid="jar.includes" />
  47. </antcall>
  48. </target>
  49. <target name="copy-theme">
  50. <fail unless="theme" message="You must give the theme name to copy n the 'theme' parameter" />
  51. <property name="theme.source.dir" location="../WebContent/VAADIN/themes/${theme}/" />
  52. <copy todir="${theme.result.dir}/${theme}">
  53. <fileset dir="${theme.source.dir}">
  54. <include name="**/*.scss" />
  55. </fileset>
  56. <filterset refid="filter-vaadin.version" />
  57. </copy>
  58. <copy todir="${theme.result.dir}/${theme}">
  59. <fileset dir="${theme.source.dir}">
  60. <exclude name="**/*.scss" />
  61. </fileset>
  62. </copy>
  63. </target>
  64. <target name="compile-theme" depends="copy-theme">
  65. <fail unless="theme" message="You must give the theme name to compile in the 'theme' parameter" />
  66. <ivy:resolve log="download-only" resolveid="common" conf="compile-theme" />
  67. <ivy:cachepath pathid="classpath.compile.theme" conf="compile-theme" />
  68. <ivy:cachepath pathid="classpath.runtime.theme" conf="build" />
  69. <echo>Compiling ${theme}</echo>
  70. <mkdir dir="${theme.result.dir}" />
  71. <!-- compile the theme -->
  72. <java classname="com.vaadin.buildhelpers.CompileTheme" classpathref="classpath.compile.theme" failonerror="yes" fork="yes" maxmemory="512m">
  73. <arg value="--theme" />
  74. <arg value="${theme}" />
  75. <arg value="--theme-folder" />
  76. <arg value="${theme.result.dir}" />
  77. <arg value="--version" />
  78. <arg value="${vaadin.version}" />
  79. <jvmarg value="-Xss8M" />
  80. <jvmarg value="-XX:MaxPermSize=256M" />
  81. <jvmarg value="-Djava.awt.headless=true" />
  82. </java>
  83. </target>
  84. <target name="publish-local" depends="jar">
  85. <antcall target="common.publish-local">
  86. </antcall>
  87. </target>
  88. <target name="clean">
  89. <antcall target="common.clean" />
  90. </target>
  91. <target name="checkstyle">
  92. <echo>No java files in module</echo>
  93. </target>
  94. <target name="test" depends="checkstyle">
  95. <!--<antcall target="common.test.run" /> -->
  96. <echo>WHAT? No tests for ${module.name}!</echo>
  97. </target>
  98. </project>