/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
- <?xml version="1.0"?>
- <!--
- This is a build.xml file for building the QuickNotepad plugin.
- The 'dist' target compiles the plugin and creates the JAR file.
- Before running the 'dist' target, you will need to generate the
- documentation using one of these two targets:
- - 'docs-xalan': Creates documentation using the Xalan XSLT processor
- - 'docs-xsltproc': Creates documentation using the xsltproc tool
- To use it for building your own plugin, make these changes:
- - Change definition of 'jedit.install.dir' to point to the directory
- containing jedit.jar
- - Change definition of 'jar.name' to the name of your plugin's JAR file
- - If necessary, add any dependencies to the 'project.class.path'
- definition
- - If necessary, change the list of files in the 'dist' targtet
- - If your plugin has documentation generated using the DocBook XSL
- stylesheets, change the 'docs-xalan' and 'docs-xsltproc' targets
- accordingly.
- -->
- <project name="QuickNotepad" default="dist" basedir=".">
- <property name="jedit.install.dir" value="G:\\Program Files\\jEdit 4.0pre1"/>
- <property name="jar.name" value="QuickNotepad.jar"/>
- <property name="src.dir" value="."/>
- <property name="build.dir" value="build"/>
- <property name="install.dir" value=".."/>
- <path id="project.class.path">
- <pathelement location="${jedit.install.dir}/jedit.jar"/>
- <pathelement location="."/>
- </path>
- <target name="init">
- <mkdir dir="${build.dir}"/>
- </target>
- <target name="compile" depends="init">
- <javac
- srcdir="${src.dir}"
- destdir="${build.dir}"
- deprecation="on"
- includeJavaRuntime="yes"
- >
- <classpath refid="project.class.path"/>
- </javac>
- </target>
- <target name="dist" depends="compile">
- <mkdir dir="${install.dir}"/>
- <jar jarfile="${install.dir}/${jar.name}">
- <fileset dir="${build.dir}"/>
- <fileset dir="${src.dir}">
- <include name="actions.xml"/>
- <include name="dockables.xml"/>
- <include name="**/*.props"/>
- <include name="**/*.html"/>
- <include name="**/*.gif"/>
- </fileset>
- </jar>
- </target>
- <!-- Generate docs with xsltproc tool from www.xmlsoft.org -->
- <!-- NOTE: the "o" or "output" options do not appear to be working. -->
- <!-- To customize the title of an HTML output file, set the -->
- <!-- 'use.id.as.filename' variable in your XSL customization file -->
- <!-- and provide the file name (without extension) as the 'id' -->
- <!-- attribute of the element that constitutes a 'chunk' of output. For -->
- <!-- a plugin help file, there should usually be only one chunk, so the -->
- <!-- top-level element (<article> or <book>) should have the 'id' -->
- <!-- attribute. -->
- <target name="docs-xsltproc">
- <exec executable="xsltproc">
- <arg value="--catalogs"/>
- <arg value="--nonet"/>
- <arg value="--output"/>
- <arg value="QuickNotepad.html"/>
- <arg value="users-guide.xsl"/>
- <arg value="users-guide.xml"/>
- </exec>
- </target>
- <!-- Generate docs with Xalan tool from xml.apache.org -->
- <target name="docs-xalan">
- <style
- style="users-guide.xsl"
- in="users-guide.xml"
- out="QuickNotepad.html"
- destdir="."/>
- </target>
- <target name="clean">
- <delete dir="${build.dir}"/>
- <delete>
- <fileset dir="." includes="**/*~" defaultexcludes="no"/>
- <fileset dir="." includes="**/*.html" defaultexcludes="no"/>
- </delete>
- </target>
- </project>