assets.xml 978 B

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="assets">
  3. <property name="assets.list.name" value="assets.lst"/>
  4. <property name="assets.dir" value="src/main/assets/sync"/>
  5. <property name="assets.hash.type" value="md5"/>
  6. <property name="assets.ctl.files"
  7. value="**/*.${assets.hash.type},${assets.list.name}"/>
  8. <fileset id="assets" dir="${assets.dir}" excludes="${assets.ctl.files}"/>
  9. <target name="clean_assets">
  10. <delete>
  11. <fileset dir="${assets.dir}" includes="${assets.ctl.files}"/>
  12. </delete>
  13. </target>
  14. <target name="list">
  15. <pathconvert
  16. dirsep="/" pathsep="${line.separator}"
  17. refid="assets" property="asset.list">
  18. <map from="${basedir}/${assets.dir}/" to=""/>
  19. </pathconvert>
  20. <echo message="${asset.list}" file="${assets.dir}/${assets.list.name}"/>
  21. </target>
  22. <target name="checksum">
  23. <checksum algorithm="${assets.hash.type}">
  24. <fileset refid="assets"/>
  25. </checksum>
  26. </target>
  27. </project>