PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 90 lines | 67 code | 19 blank | 4 comment | 0 complexity | 425edab4772f44afb13912a123be6f3b MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!--
 4    Ant build file for the InfoViewer plugin for jEdit
 5    Please note that jedit.jar must be in the system classpath.
 6-->
 7
 8
 9<project name="InfoViewer" default="dist" basedir=".">
10    <property file="../build.properties" />
11    <property file="build.properties" />
12	<property name="jar.name"  value="${ant.project.name}.jar"/>
13
14	<property name="src.dir" value="."/>
15	<property name="build.dir" value="build"/>
16	<property name="install.dir" value=".."/>
17
18
19	<path id="project.class.path">
20        <pathelement location="${jedit.install.dir}/jedit.jar" />
21	</path>
22
23
24	<target name="init" >
25		<mkdir dir="${build.dir}" />
26	</target>
27
28
29	<target name="compile" depends="init">
30		<javac	srcdir="${src.dir}"
31			destdir="${build.dir}"
32            excludes="testcase/**"
33			deprecation="on"
34			debug="on"
35			includejavaruntime="yes">
36			<classpath refid="project.class.path"/>
37		</javac>
38	</target>
39
40    <path id="test.class.path">
41        <path refid="project.class.path"/>
42        <pathelement location="${install.dir}/junit.jar"/>
43        <pathelement location="${build.dir}"/>
44    </path>
45
46    
47    <target name="compiletest" depends="compile" >
48		<javac	srcdir="${src.dir}"
49			destdir="${build.dir}"
50            excludes="infoviewer/**"
51			deprecation="on"
52			debug="on"
53			includejavaruntime="yes">
54			<classpath refid="test.class.path"/>
55		</javac>
56    </target>
57    
58
59    <target name="runtest" depends="compiletest" >
60      <junit>
61        <test name="testcase.TestIndex"/>
62        <formatter type="plain" usefile="false"/>
63        <classpath refid="test.class.path"/>
64      </junit>
65    </target>
66
67	<target name="dist" depends="compile">
68		<mkdir dir="${install.dir}"/>
69		<jar jarfile="${install.dir}/${jar.name}">
70			<fileset dir="${build.dir}"/>
71			<fileset dir="${src.dir}">
72				<include name="actions.xml"/>
73				<include name="dockables.xml"/>
74				<include name="**/*.props"/>
75				<include name="**/*.html"/>
76				<include name="**/*.gif"/>
77				<include name="**/*.txt"/>
78			</fileset>
79		</jar>
80	</target>
81
82
83	<target name="clean">
84		<delete dir="${build.dir}"/>
85		<delete>
86			<fileset dir="." includes="**/*~" defaultexcludes="no"/>
87		</delete>
88	</target>
89
90</project>