build.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project default="create_jar" name="create runnable jar for XOWA">
  3. <target name="compile_core">
  4. <delete dir="100_core/bin"/>
  5. <mkdir dir="100_core/bin"/>
  6. <javac fork="yes" includeantruntime="false" sourcepath="" srcdir="100_core" destdir="100_core/bin" classpath="lib/junit.jar:100_core/lib/commons-compress-1.5.jar">
  7. <include name="**/*.java"/>
  8. </javac>
  9. </target>
  10. <target name="compile_gfml">
  11. <delete dir="110_gfml/bin"/>
  12. <mkdir dir="110_gfml/bin"/>
  13. <javac fork="yes" includeantruntime="false" sourcepath="" srcdir="110_gfml" destdir="110_gfml/bin" classpath="lib/junit.jar:100_core/bin">
  14. <include name="**/*.java"/>
  15. </javac>
  16. </target>
  17. <target name="compile_dbs">
  18. <delete dir="140_dbs/bin"/>
  19. <mkdir dir="140_dbs/bin"/>
  20. <javac fork="yes" includeantruntime="false" sourcepath="" srcdir="140_dbs" destdir="140_dbs/bin" classpath="lib/junit.jar:100_core/bin:140_dbs/lib/sqlite-jdbc-3.8.11.2.jar">
  21. <include name="**/*.java"/>
  22. </javac>
  23. </target>
  24. <target name="compile_gfui">
  25. <delete dir="150_gfui/bin"/>
  26. <mkdir dir="150_gfui/bin"/>
  27. <javac fork="yes" includeantruntime="false" sourcepath="" srcdir="150_gfui" destdir="150_gfui/bin" classpath="lib/junit.jar:150_gfui/lib/swt.jar:100_core/bin:110_gfml/bin">
  28. <include name="**/*.java"/>
  29. </javac>
  30. </target>
  31. <target name="compile_xowa" depends="compile_core,compile_gfml,compile_dbs,compile_gfui">
  32. <delete dir="400_xowa/bin"/>
  33. <mkdir dir="400_xowa/bin"/>
  34. <javac fork="yes" includeantruntime="false" sourcepath="" srcdir="400_xowa" destdir="400_xowa/bin" classpath="lib/junit.jar:100_core/bin:110_gfml/bin:140_dbs/bin:150_gfui/bin:400_xowa/lib/luaj_xowa.jar:400_xowa/lib/jtidy_xowa.jar">
  35. <compilerarg line="-encoding utf-8"/>
  36. <include name="**/*.java"/>
  37. </javac>
  38. </target>
  39. <target name="create_jar" depends="compile_xowa">
  40. <jar destfile="../xowa_${plat_name}.jar">
  41. <manifest>
  42. <attribute name="Main-Class" value="gplx.xowa.Xowa_main"/>
  43. <attribute name="Class-Path" value=". bin/${plat_name}/swt/swt.jar bin/any/java/apache/commons-compress-1.5.jar bin/any/java/jdbc/sqlite/sqlite-jdbc-3.8.11.2.jar bin/any/java/luaj/luaj_xowa.jar bin/any/java/jtidy/jtidy_xowa.jar"/>
  44. </manifest>
  45. <fileset dir="100_core/bin"/>
  46. <fileset dir="110_gfml/bin"/>
  47. <fileset dir="140_dbs/bin"/>
  48. <fileset dir="150_gfui/bin"/>
  49. <fileset dir="400_xowa/bin"/>
  50. </jar>
  51. </target>
  52. </project>