PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/InfoViewer/build.xml

#
XML | 90 lines | 67 code | 19 blank | 4 comment | 0 complexity | 425edab4772f44afb13912a123be6f3b MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <?xml version="1.0"?>
  2. <!--
  3. Ant build file for the InfoViewer plugin for jEdit
  4. Please note that jedit.jar must be in the system classpath.
  5. -->
  6. <project name="InfoViewer" default="dist" basedir=".">
  7. <property file="../build.properties" />
  8. <property file="build.properties" />
  9. <property name="jar.name" value="${ant.project.name}.jar"/>
  10. <property name="src.dir" value="."/>
  11. <property name="build.dir" value="build"/>
  12. <property name="install.dir" value=".."/>
  13. <path id="project.class.path">
  14. <pathelement location="${jedit.install.dir}/jedit.jar" />
  15. </path>
  16. <target name="init" >
  17. <mkdir dir="${build.dir}" />
  18. </target>
  19. <target name="compile" depends="init">
  20. <javac srcdir="${src.dir}"
  21. destdir="${build.dir}"
  22. excludes="testcase/**"
  23. deprecation="on"
  24. debug="on"
  25. includejavaruntime="yes">
  26. <classpath refid="project.class.path"/>
  27. </javac>
  28. </target>
  29. <path id="test.class.path">
  30. <path refid="project.class.path"/>
  31. <pathelement location="${install.dir}/junit.jar"/>
  32. <pathelement location="${build.dir}"/>
  33. </path>
  34. <target name="compiletest" depends="compile" >
  35. <javac srcdir="${src.dir}"
  36. destdir="${build.dir}"
  37. excludes="infoviewer/**"
  38. deprecation="on"
  39. debug="on"
  40. includejavaruntime="yes">
  41. <classpath refid="test.class.path"/>
  42. </javac>
  43. </target>
  44. <target name="runtest" depends="compiletest" >
  45. <junit>
  46. <test name="testcase.TestIndex"/>
  47. <formatter type="plain" usefile="false"/>
  48. <classpath refid="test.class.path"/>
  49. </junit>
  50. </target>
  51. <target name="dist" depends="compile">
  52. <mkdir dir="${install.dir}"/>
  53. <jar jarfile="${install.dir}/${jar.name}">
  54. <fileset dir="${build.dir}"/>
  55. <fileset dir="${src.dir}">
  56. <include name="actions.xml"/>
  57. <include name="dockables.xml"/>
  58. <include name="**/*.props"/>
  59. <include name="**/*.html"/>
  60. <include name="**/*.gif"/>
  61. <include name="**/*.txt"/>
  62. </fileset>
  63. </jar>
  64. </target>
  65. <target name="clean">
  66. <delete dir="${build.dir}"/>
  67. <delete>
  68. <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  69. </delete>
  70. </target>
  71. </project>