Note that there are some explanatory texts on larger screens.

plurals
  1. POMaking jUnit output info and compile to /build folder
    primarykey
    data
    text
    <p>I have the following Ant buildfile: </p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;!-- the value of the default attr must be one of the targets. --&gt; &lt;project name="Money" default="build-source" basedir="."&gt; &lt;description&gt;The Money project build file.&lt;/description&gt; &lt;property name="src" location="."/&gt; &lt;property name="build" location="build"/&gt; &lt;property name="junit" location="lib/junit-4.9b3.jar"/&gt; &lt;path id="_classpath"&gt; &lt;pathelement path="${junit}"/&gt; &lt;pathelement path="${build}"/&gt; &lt;/path&gt; &lt;target name="prepare"&gt; &lt;mkdir dir="${build}"/&gt; &lt;/target&gt; &lt;target name="build-source" depends="prepare" description="compile the source "&gt; &lt;javac srcdir="${src}" destdir="${build}"&gt; &lt;classpath refid="_classpath"/&gt; &lt;/javac&gt; &lt;/target&gt; &lt;target name="run" depends="build-source"&gt; &lt;junit printsummary="on" showoutput="on"&gt; &lt;test name="money.MoneyTest"/&gt; &lt;classpath refid="_classpath"/&gt; &lt;/junit&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p>It's pretty basic - I'm just trying to get this thing to run properly. What I don't get is: 1) Why does it output the compiled files to a /build/money directory? I want the output directory to be just /build, given this directory structure for my files:</p> <pre><code>build/ build.xml lib/ src/ test/ </code></pre> <p>2) When there are tests that don't pass, it says "Test money.MoneyTest FAILED". I'd like it to output info about the failure, expected / actual values, line number, etc.</p> <p>I can't figure this out by staring at the buildfile above. Any advice?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload