[09549c]: build.xml Maximize Restore History

Download this file

build.xml    119 lines (90 with data), 3.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0"?>
<!--
This is the standard build.xml file for building the BufferSelector plugin.
The 'dist' target compiles the plugin, generates documentation, and creates
the JAR file. Before running the 'dist' target, you will need to choose
whether to generate the documentation using one of these two targets:
- 'docs-xsltproc': Creates documentation using the xsltproc tool from
libxslt, available at http://xmlsoft.org/XSLT
- 'docs-xalan': Creates documentation using the Xalan XSLT processor,
available at http://xml.apache.org/
The default processor is xsltproc. You can change the processor to Xalan by
setting the docs-proc.target property to xalan. This can be done on the
command line by adding '-Ddocs-proc.target=xalan'. If you do not have any
documentation, you can remove the 'docs' target from the depends list for
the 'dist' target.
To use this template for building your own plugin, make these changes:
- Change 'name' property for the <project> to the name of your plugin
- Change definition of 'jedit.install.dir' to point to the directory
containing jedit.jar
- If necessary, add any dependencies to the 'project.class.path' definition
- If necessary, change the list of files in the 'dist' target
- If necessary, change the 'docs-xalan' and 'docs-xsltproc' targets to
reflect the appropriate values for your documentation
-->
<project name="BufferSelector" default="dist" basedir=".">
<property name="jedit.install.dir" value="../.."/>
<property name="jar.name" value="${ant.project.name}.jar"/>
<property name="docs-proc.target" value="xsltproc"/>
<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="${src.dir}"/>
</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, docs">
<mkdir dir="${install.dir}"/>
<jar jarfile="${install.dir}/${jar.name}">
<fileset dir="${build.dir}"/>
<fileset dir="${src.dir}">
<include name="actions.xml"/>
<include name="**/*.props"/>
<include name="**/*.gif"/>
<include name="**/*.html"/>
<include name="**/*.txt"/>
</fileset>
</jar>
</target>
<target name="docs">
<antcall target="docs-${docs-proc.target}"/>
</target>
<!-- Generate docs with xsltproc tool from www.xmlsoft.org -->
<target name="docs-xsltproc">
<exec executable="xsltproc">
<arg value="--catalogs"/>
<arg value="--output"/>
<arg value="users-guide.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="users-guide.html"
/>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete>
<fileset dir="." includes="users-guide.html"/>
<fileset dir="." includes="**/*~"/>
</delete>
</target>
</project>