Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I edited my build.xml and now it looks like this:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project name="FBChatSoft" default="default" basedir="."&gt; &lt;description&gt;Builds, tests, and runs the project FBChatSoft.&lt;/description&gt; &lt;import file="nbproject/build-impl.xml"/&gt; &lt;import file="nbproject/profiler-build-impl.xml"/&gt; &lt;target name="clean"&gt; &lt;delete dir="dist"/&gt; &lt;/target&gt; &lt;target name="compile"&gt; &lt;mkdir dir="build/classes"/&gt; &lt;javac srcdir="src" destdir="build/classes"/&gt; &lt;/target&gt; &lt;target name="jar"&gt; &lt;mkdir dir="dist"/&gt; &lt;jar destfile="dist/FBChatSoft.jar" basedir="build/classes"&gt; &lt;manifest&gt; &lt;attribute name="Main-Class" value="fbchatsoft.client.FBChatSoft"/&gt; &lt;attribute name="Class-Path" value="lib/smack.jar lib/junit-4.5.jar"/&gt; &lt;/manifest&gt; &lt;/jar&gt; &lt;/target&gt; &lt;target name="run"&gt; &lt;java jar="dist/FBChatSoft.jar" fork="true"/&gt; &lt;/target&gt; &lt;target name="junit" depends="jar"&gt; &lt;mkdir dir="junitreport"/&gt; &lt;junit printsummary="yes"&gt; &lt;classpath&gt; &lt;pathelement location="build/classes/"/&gt; &lt;/classpath&gt; &lt;formatter type="xml"/&gt; &lt;batchtest todir="junitreport"&gt; &lt;fileset dir="src/" includes="**/*Test.java"/&gt; &lt;/batchtest&gt; &lt;/junit&gt; &lt;/target&gt; &lt;target name="junitreport"&gt; &lt;junitreport todir="junitreport"&gt; &lt;fileset dir="junitreport" includes="TEST-*.xml"/&gt; &lt;report todir="junitreport"/&gt; &lt;/junitreport&gt; &lt;/target&gt; &lt;/project&gt; </code></pre> <p>Then I added the newest junit package to /usr/share/ant/lib and now it works!</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.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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