ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Frankowski <dfran...@cs.umn.edu>
Subject FAQ addition
Date Wed, 28 Dec 2005 18:09:26 GMT
This information from the Ant wiki helped me, so I propose including it 
in the FAQ.

Feel free to change its position, or expand upon its answer.

Dan

 % diff -bu faq.xml.org faq.xml
--- faq.xml.org 2005-12-28 11:52:16.663968000 -0600
+++ faq.xml     2005-12-28 11:56:19.123783000 -0600
@@ -630,6 +630,26 @@
       </answer>
     </faq>

+    <faq id="junit-task">
+      <question>How do I use the junit task?</question>
+
+      <answer>
+        <p>From <a 
href="http://wiki.apache.org/ant/AntNewbies">http://wiki.apache.org/ant/AntNewbies</a>:
+        <p>It's not enough to have junit.jar on the classpath for the
+        tests, it has to be loaded in the same classloader as Ant's
+        junit task. Either add junit.jar to ANT_HOME/lib
+        ${user.home}/.ant/.lib. The alternate solution (a new
+        declaration of the Ant junit tasks after removing
+        ant-junit.jar from ANT_HOME/lib) is not recommended for
+        beginners.</p>
+
+        <p>To verify that your libraries are set up right, run "ant
+        -diagnostics". This will list tasks that are not available. Do
+        not attempt to run JUnit if the -diagnostics option tells you
+        that junit is not available or missing a dependency.</p>
+      </answer>
+    </faq>
+
     <faq id="use-zip-instead-of-jar">
       <question>How do I use <code>jar</code>&apos;s <code>M</code>
switch?
       I don&apos;t want a MANIFEST.</question>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message