PageRenderTime 79ms CodeModel.GetById 76ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

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