build_for_Raspberry3.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <project name="jAlbum" basedir="." default="cpfiles">
  3. <property name="dedup.dir" location="dedup"/>
  4. <property name="photoweb.dir" location="photoweb"/>
  5. <property name="distribute.dir" location="distribute"/>
  6. <property name="scripts.dir" location="scripts"/>
  7. <property name="jdbc.dir" location="jdbcsqlitenative"/>
  8. <target name="jdbc">
  9. <exec dir="${jdbc.dir}" executable="make" os="Linux" failonerror="true"/>
  10. </target>
  11. <target name="cpfiles">
  12. <mkdir dir="${distribute.dir}"/>
  13. <mkdir dir="${distribute.dir}/lib"/>
  14. <mkdir dir="${distribute.dir}/lib/extra"/>
  15. <mkdir dir="${distribute.dir}/log"/>
  16. <move todir="${distribute.dir}" overwrite="true">
  17. <fileset dir="${dedup.dir}/target">
  18. <include name="start.jar"/>
  19. </fileset>
  20. <fileset dir="${photoweb.dir}/target">
  21. <include name="root.war"/>
  22. </fileset>
  23. <fileset dir="${jdbc.dir}">
  24. <include name="libsqlite.so"/>
  25. </fileset>
  26. </move>
  27. <copy todir="${distribute.dir}" overwrite="false">
  28. <fileset dir="${dedup.dir}">
  29. <include name="dedup.db"/>
  30. <include name="favicon.ico"/>
  31. <include name="jalbum.xml"/>
  32. <include name="log4j.xml"/>
  33. <include name="keystore"/>
  34. </fileset>
  35. <fileset dir="${scripts.dir}">
  36. <include name="jalbum_for_Raspberry3.sh"/>
  37. <include name="readme.txt"/>
  38. </fileset>
  39. </copy>
  40. <copy todir="${distribute.dir}/lib/extra" overwrite="true">
  41. <fileset dir="${photoweb.dir}/target/dependency"/>
  42. </copy>
  43. <copy todir="${distribute.dir}/js" overwrite="true">
  44. <fileset dir="${dedup.dir}/js"/>
  45. </copy>
  46. </target>
  47. </project>