/bundles/plugins-trunk/InfoViewer/build.xml
XML | 90 lines | 67 code | 19 blank | 4 comment | 0 complexity | 425edab4772f44afb13912a123be6f3b 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"?>
- <!--
- Ant build file for the InfoViewer plugin for jEdit
- Please note that jedit.jar must be in the system classpath.
- -->
- <project name="InfoViewer" default="dist" basedir=".">
- <property file="../build.properties" />
- <property file="build.properties" />
- <property name="jar.name" value="${ant.project.name}.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" />
- </path>
- <target name="init" >
- <mkdir dir="${build.dir}" />
- </target>
- <target name="compile" depends="init">
- <javac srcdir="${src.dir}"
- destdir="${build.dir}"
- excludes="testcase/**"
- deprecation="on"
- debug="on"
- includejavaruntime="yes">
- <classpath refid="project.class.path"/>
- </javac>
- </target>
- <path id="test.class.path">
- <path refid="project.class.path"/>
- <pathelement location="${install.dir}/junit.jar"/>
- <pathelement location="${build.dir}"/>
- </path>
-
- <target name="compiletest" depends="compile" >
- <javac srcdir="${src.dir}"
- destdir="${build.dir}"
- excludes="infoviewer/**"
- deprecation="on"
- debug="on"
- includejavaruntime="yes">
- <classpath refid="test.class.path"/>
- </javac>
- </target>
-
- <target name="runtest" depends="compiletest" >
- <junit>
- <test name="testcase.TestIndex"/>
- <formatter type="plain" usefile="false"/>
- <classpath refid="test.class.path"/>
- </junit>
- </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"/>
- <include name="**/*.txt"/>
- </fileset>
- </jar>
- </target>
- <target name="clean">
- <delete dir="${build.dir}"/>
- <delete>
- <fileset dir="." includes="**/*~" defaultexcludes="no"/>
- </delete>
- </target>
- </project>