This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<!-- WARNING: Eclipse auto-generated file. | ||
Any modifications will be overwritten. | ||
To include a user specific buildfile here, simply create one in the same | ||
directory with the processing instruction <?eclipse.ant.import?> | ||
as the first entry and export the buildfile again. --> | ||
<project basedir="." default="build" name="Mini-Project"> | ||
<property environment="env"/> | ||
<property name="ECLIPSE_HOME" value="../../../../../../../../Applications/Eclipse"/> | ||
<property name="junit.output.dir" value="junit"/> | ||
<property name="debuglevel" value="source,lines,vars"/> | ||
<property name="target" value="1.6"/> | ||
<property name="source" value="1.6"/> | ||
<path id="JUnit 4.libraryclasspath"> | ||
<pathelement location="${ECLIPSE_HOME}/plugins/org.junit_4.8.2.v4_8_2_v20110321-1705/junit.jar"/> | ||
<pathelement location="${ECLIPSE_HOME}/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar"/> | ||
</path> | ||
<path id="Mini-Project.classpath"> | ||
<pathelement location="bin"/> | ||
<path refid="JUnit 4.libraryclasspath"/> | ||
</path> | ||
<target name="init"> | ||
<mkdir dir="bin"/> | ||
<copy includeemptydirs="false" todir="bin"> | ||
<fileset dir="src"> | ||
<exclude name="**/*.java"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
<target depends="clean" name="cleanall"/> | ||
<target depends="build-subprojects,build-project" name="build"/> | ||
<target name="build-subprojects"/> | ||
<target depends="init" name="build-project"> | ||
<echo message="${ant.project.name}: ${ant.file}"/> | ||
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> | ||
<src path="src"/> | ||
<classpath refid="Mini-Project.classpath"/> | ||
</javac> | ||
</target> | ||
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> | ||
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> | ||
<copy todir="${ant.library.dir}"> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</copy> | ||
<unzip dest="${ant.library.dir}"> | ||
<patternset includes="jdtCompilerAdapter.jar"/> | ||
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> | ||
</unzip> | ||
</target> | ||
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> | ||
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> | ||
<antcall target="build"/> | ||
</target> | ||
<target name="Driver"> | ||
<java classname="com.github.cglong.Grammartizer.Driver" failonerror="true" fork="yes"> | ||
<classpath refid="Mini-Project.classpath"/> | ||
</java> | ||
</target> | ||
<target name="DriverTest"> | ||
<mkdir dir="${junit.output.dir}"/> | ||
<junit fork="yes" printsummary="withOutAndErr"> | ||
<formatter type="xml"/> | ||
<test name="com.github.cglong.Grammartizer.DriverTest" todir="${junit.output.dir}"/> | ||
<classpath refid="Mini-Project.classpath"/> | ||
</junit> | ||
</target> | ||
<target name="junitreport"> | ||
<junitreport todir="${junit.output.dir}"> | ||
<fileset dir="${junit.output.dir}"> | ||
<include name="TEST-*.xml"/> | ||
</fileset> | ||
<report format="frames" todir="${junit.output.dir}"/> | ||
</junitreport> | ||
</target> | ||
</project> |