Browse Source

junit.jar is required to build 1.7.0 from sources

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@495488 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 18 years ago
parent
commit
0aa45a08bb
2 changed files with 54 additions and 0 deletions
  1. +25
    -0
      docs/faq.html
  2. +29
    -0
      xdocs/faq.xml

+ 25
- 0
docs/faq.html View File

@@ -343,6 +343,10 @@
</ul>
<h4 class="toc">Known Problems</h4>
<ul>
<li><a href="#170-requires-junit">
Ant 1.7.0 doesn't build from sources without
JUnit
</a></li>
<li><a href="#remove-cr">
&lt;chmod&gt; or &lt;exec&gt; doesn't work in Ant
1.3 on Unix
@@ -1623,6 +1627,27 @@ public void buildFinished(BuildEvent e) {
files that your project does, since it will give the correct
results for properties that were specified on the Ant command line.</p>
<p class="faq">
<a name="170-requires-junit"></a>
Ant 1.7.0 doesn't build from sources without
JUnit
</p>
<p>When building Ant 1.7.0 from the source release without
junit.jar the build fails with the message "We cannot build
the test jar unless JUnit is present".</p>
<p>With Ant 1.7.0 we've started to add ant-testutil.jar as
part of the distribution and this causes a hard dependency on
JUnit - at least in version 1.7.0. Unfortunately the
installation docs don't say so.</p>
<p>There are two workarounds:</p>
<ol>

<li>Add junit.jar to your CLASSPATH when building Ant.</li>

<li>Change Ant's buildfile and remove test-jar from the
depends list of the dist-lite target.</li>

</ol>
<p class="faq">
<a name="remove-cr"></a>
&lt;chmod&gt; or &lt;exec&gt; doesn't work in Ant
1.3 on Unix


+ 29
- 0
xdocs/faq.xml View File

@@ -1329,6 +1329,35 @@ public void buildFinished(BuildEvent e) {
</faqsection>

<faqsection title="Known Problems">
<faq id="170-requires-junit">
<question>Ant 1.7.0 doesn't build from sources without
JUnit</question>

<answer>

<p>When building Ant 1.7.0 from the source release without
junit.jar the build fails with the message "We cannot build
the test jar unless JUnit is present".</p>

<p>With Ant 1.7.0 we've started to add ant-testutil.jar as
part of the distribution and this causes a hard dependency on
JUnit - at least in version 1.7.0. Unfortunately the
installation docs don't say so.</p>

<p>There are two workarounds:</p>

<ol>

<li>Add junit.jar to your CLASSPATH when building Ant.</li>

<li>Change Ant's buildfile and remove test-jar from the
depends list of the dist-lite target.</li>

</ol>

</answer>
</faq>

<faq id="remove-cr">
<question>&lt;chmod&gt; or &lt;exec&gt; doesn&apos;t work in Ant
1.3 on Unix</question>


Loading…
Cancel
Save