PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
XML | 87 lines | 66 code | 20 blank | 1 comment | 0 complexity | ec11e11e671127c3eabc071f83555591 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. <!-- Ant build file for the Sessions plugin for jEdit -->
  3. <project name="Sessions" default="all" basedir=".">
  4. <property file="build.properties"/>
  5. <property file="../build.properties"/>
  6. <property file="${user.home}/.build.properties"/>
  7. <property file="${user.home}/build.properties"/>
  8. <property name="jar.name" value="${ant.project.name}.jar"/>
  9. <property name="src.dir" value="."/>
  10. <property name="build.dir" value="build"/>
  11. <property name="install.dir" value=".."/>
  12. <property name="doc.dir" value="javadoc"/>
  13. <property name="jedit.install.dir" value="../.."/>
  14. <path id="project.class.path">
  15. <pathelement location="${src.dir}"/>
  16. <pathelement location="${jedit.install.dir}/jedit.jar"/>
  17. </path>
  18. <target name="init">
  19. <mkdir dir="${build.dir}"/>
  20. </target>
  21. <target name="compile" depends="init">
  22. <javac
  23. srcdir="${src.dir}"
  24. destdir="${build.dir}"
  25. deprecation="on"
  26. debug="on"
  27. includeJavaRuntime="yes"
  28. >
  29. <classpath refid="project.class.path"/>
  30. </javac>
  31. </target>
  32. <target name="dist" depends="compile">
  33. <mkdir dir="${install.dir}"/>
  34. <jar jarfile="${install.dir}/${jar.name}">
  35. <fileset dir="${build.dir}"/>
  36. <fileset dir="${src.dir}">
  37. <include name="actions.xml"/>
  38. <include name="sessions/session.dtd"/>
  39. <include name="**/*.props"/>
  40. <include name="**/*.html"/>
  41. <include name="**/*.gif"/>
  42. <include name="**/*.txt"/>
  43. </fileset>
  44. </jar>
  45. </target>
  46. <target name="all" depends="clean,dist"/>
  47. <target name="clean">
  48. <delete dir="${build.dir}"/>
  49. <delete>
  50. <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  51. </delete>
  52. </target>
  53. <target name="javadoc">
  54. <delete dir="${doc.dir}"/>
  55. <mkdir dir="${doc.dir}"/>
  56. <javadoc
  57. packagenames="sessions.*"
  58. sourcepath="${src.dir}"
  59. destdir="${doc.dir}"
  60. classpathref="project.class.path"
  61. author="true"
  62. version="true"
  63. use="true"
  64. windowtitle="SessionsPlugin API reference"
  65. />
  66. </target>
  67. </project>