PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/jars/QuickNotepad/build.xml

#
XML | 110 lines | 62 code | 16 blank | 32 comment | 0 complexity | a2bd2fdc1fc1ac4bf83f626f15ed03e1 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. This is a build.xml file for building the QuickNotepad plugin.
  4. The 'dist' target compiles the plugin and creates the JAR file.
  5. Before running the 'dist' target, you will need to generate the
  6. documentation using one of these two targets:
  7. - 'docs-xalan': Creates documentation using the Xalan XSLT processor
  8. - 'docs-xsltproc': Creates documentation using the xsltproc tool
  9. To use it for building your own plugin, make these changes:
  10. - Change definition of 'jedit.install.dir' to point to the directory
  11. containing jedit.jar
  12. - Change definition of 'jar.name' to the name of your plugin's JAR file
  13. - If necessary, add any dependencies to the 'project.class.path'
  14. definition
  15. - If necessary, change the list of files in the 'dist' targtet
  16. - If your plugin has documentation generated using the DocBook XSL
  17. stylesheets, change the 'docs-xalan' and 'docs-xsltproc' targets
  18. accordingly.
  19. -->
  20. <project name="QuickNotepad" default="dist" basedir=".">
  21. <property name="jedit.install.dir" value="G:\\Program Files\\jEdit 4.0pre1"/>
  22. <property name="jar.name" value="QuickNotepad.jar"/>
  23. <property name="src.dir" value="."/>
  24. <property name="build.dir" value="build"/>
  25. <property name="install.dir" value=".."/>
  26. <path id="project.class.path">
  27. <pathelement location="${jedit.install.dir}/jedit.jar"/>
  28. <pathelement location="."/>
  29. </path>
  30. <target name="init">
  31. <mkdir dir="${build.dir}"/>
  32. </target>
  33. <target name="compile" depends="init">
  34. <javac
  35. srcdir="${src.dir}"
  36. destdir="${build.dir}"
  37. deprecation="on"
  38. includeJavaRuntime="yes"
  39. >
  40. <classpath refid="project.class.path"/>
  41. </javac>
  42. </target>
  43. <target name="dist" depends="compile">
  44. <mkdir dir="${install.dir}"/>
  45. <jar jarfile="${install.dir}/${jar.name}">
  46. <fileset dir="${build.dir}"/>
  47. <fileset dir="${src.dir}">
  48. <include name="actions.xml"/>
  49. <include name="dockables.xml"/>
  50. <include name="**/*.props"/>
  51. <include name="**/*.html"/>
  52. <include name="**/*.gif"/>
  53. </fileset>
  54. </jar>
  55. </target>
  56. <!-- Generate docs with xsltproc tool from www.xmlsoft.org -->
  57. <!-- NOTE: the "o" or "output" options do not appear to be working. -->
  58. <!-- To customize the title of an HTML output file, set the -->
  59. <!-- 'use.id.as.filename' variable in your XSL customization file -->
  60. <!-- and provide the file name (without extension) as the 'id' -->
  61. <!-- attribute of the element that constitutes a 'chunk' of output. For -->
  62. <!-- a plugin help file, there should usually be only one chunk, so the -->
  63. <!-- top-level element (<article> or <book>) should have the 'id' -->
  64. <!-- attribute. -->
  65. <target name="docs-xsltproc">
  66. <exec executable="xsltproc">
  67. <arg value="--catalogs"/>
  68. <arg value="--nonet"/>
  69. <arg value="--output"/>
  70. <arg value="QuickNotepad.html"/>
  71. <arg value="users-guide.xsl"/>
  72. <arg value="users-guide.xml"/>
  73. </exec>
  74. </target>
  75. <!-- Generate docs with Xalan tool from xml.apache.org -->
  76. <target name="docs-xalan">
  77. <style
  78. style="users-guide.xsl"
  79. in="users-guide.xml"
  80. out="QuickNotepad.html"
  81. destdir="."/>
  82. </target>
  83. <target name="clean">
  84. <delete dir="${build.dir}"/>
  85. <delete>
  86. <fileset dir="." includes="**/*~" defaultexcludes="no"/>
  87. <fileset dir="." includes="**/*.html" defaultexcludes="no"/>
  88. </delete>
  89. </target>
  90. </project>