Loan_APP/build.xml
2024-01-18 12:06:35 +01:00

151 lines
7.4 KiB
XML

<?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="bank_loan_app">
<property environment="env"/>
<property name="junit.output.dir" value="junit"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="20"/>
<property name="source" value="20"/>
<property name="spotbugs.home" value="lib/spotbugs-4.8.3/lib"/>
<taskdef resource="edu/umd/cs/findbugs/anttask/tasks.properties" classpath="${spotbugs.home}/spotbugs-ant.jar"/>
<path id="JUnit 5.libraryclasspath">
<pathelement location="../../.p2/pool/plugins/junit-jupiter-api_5.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-jupiter-engine_5.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-jupiter-migrationsupport_5.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-jupiter-params_5.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-commons_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-engine_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-launcher_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-runner_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-suite-api_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-suite-engine_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-platform-suite-commons_1.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/junit-vintage-engine_5.10.0.jar"/>
<pathelement location="../../.p2/pool/plugins/org.opentest4j_1.3.0.jar"/>
<pathelement location="../../.p2/pool/plugins/org.apiguardian.api_1.1.2.jar"/>
<pathelement location="../../.p2/pool/plugins/org.junit_4.13.2.v20230809-1000.jar"/>
<pathelement location="../../.p2/pool/plugins/org.hamcrest_2.2.0.jar"/>
<pathelement location="../../.p2/pool/plugins/org.hamcrest.core_2.2.0.v20230809-1000.jar"/>
</path>
<path id="pitest.path">
<pathelement location="lib/pitest-1.9.3.jar"/>
<pathelement location="lib/pitest-entry-1.9.3.jar"/>
<pathelement location="lib/pitest-ant-1.9.3.jar"/>
</path>
<taskdef name="pitest" classname="org.pitest.ant.PitestTask" classpathref="pitest.path"/>
<path id="bank_loan_app.classpath">
<pathelement location="bin"/>
<path refid="JUnit 5.libraryclasspath"/>
</path>
<path id="run.LoanCalculator.classpath">
<path refid="bank_loan_app.classpath"/>
<path refid="JUnit 5.libraryclasspath"/>
</path>
<path id="run.LoanCalculatorTest.classpath">
<path refid="bank_loan_app.classpath"/>
<path refid="JUnit 5.libraryclasspath"/>
</path>
<path id="run.bank_loan_app.classpath">
<path refid="bank_loan_app.classpath"/>
<path refid="JUnit 5.libraryclasspath"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<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" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="bank_loan_app.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="LoanCalculator">
<java classname="bank_loan_app.LoanCalculator" failonerror="true" fork="yes">
<classpath refid="run.LoanCalculator.classpath"/>
</java>
</target>
<target name="LoanCalculatorTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="bank_loan_app.LoanCalculatorTest" todir="${junit.output.dir}"/>
<jvmarg line="-ea"/>
<classpath refid="run.LoanCalculatorTest.classpath"/>
</junit>
</target>
<target name="bank_loan_app">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<jvmarg line="-ea"/>
<classpath refid="run.bank_loan_app.classpath"/>
</junit>
</target>
<target name="pit" depends="LoanCalculatorTest">
<path id="mutation.path">
<path refid="pitest.path"/>
<path refid="run.LoanCalculatorTest.classpath"/>
</path>
<!-- export feature has been activated to write mutants to file -->
<pitest features="+EXPORT" pitClasspath="pitest.path" threads="2" classPath="mutation.path" targetTests="bank_loan_app.*" targetClasses="bank_loan_app.*" reportDir="pitReports" sourceDir="src"/>
</target>
<target name="spotbugs" depends="build">
<spotbugs home="${spotbugs.home}" output="xml" outputFile="bcel-sb.xml">
<auxClasspath path="${basedir}/lib/Regex.jar"/>
<sourcePath path="${basedir}/src/"/>
<class location="${basedir}/bin/bank_loan_app/LoanCalculator.class"/>
</spotbugs>
</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>