git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276876 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -250,6 +250,9 @@ | |||||
| </ul> | </ul> | ||||
| <h4 class="toc">It doesn't work (as expected)</h4> | <h4 class="toc">It doesn't work (as expected)</h4> | ||||
| <ul> | <ul> | ||||
| <li><a href="#genral-advice"> | |||||
| General Advice | |||||
| </a></li> | |||||
| <li><a href="#always-recompiles"> | <li><a href="#always-recompiles"> | ||||
| Why does Ant always recompile all my Java files? | Why does Ant always recompile all my Java files? | ||||
| </a></li> | </a></li> | ||||
| @@ -990,6 +993,13 @@ shell-prompt> m4 foo.m4 > foo | |||||
| </macrodef> | </macrodef> | ||||
| </pre> | </pre> | ||||
| <p class="faq"> | <p class="faq"> | ||||
| <a name="genral-advice"></a> | |||||
| General Advice | |||||
| </p> | |||||
| <p>There are many reasons why Ant doesn't behave as | |||||
| expected, not all of them are due to Ant bugs. See our <a href="problems.html">Having Problems?</a> page for hints that | |||||
| may help pinning down the reasons for your problem.</p> | |||||
| <p class="faq"> | |||||
| <a name="always-recompiles"></a> | <a name="always-recompiles"></a> | ||||
| Why does Ant always recompile all my Java files? | Why does Ant always recompile all my Java files? | ||||
| </p> | </p> | ||||
| @@ -184,6 +184,28 @@ | |||||
| you in the right direction. | you in the right direction. | ||||
| </p> | </p> | ||||
| <h4 class="subsection"> | <h4 class="subsection"> | ||||
| <a name="Ensure that you are actually running the version of Ant that you think you do"></a> | |||||
| Ensure that you are actually running the version of Ant that you think you do | |||||
| </h4> | |||||
| <p>Many tools include a version of Ant and some Operating | |||||
| Systems even install it by default now, so you may have a | |||||
| version of Ant installed that you haven't been aware of.</p> | |||||
| <p>One of the first things to do is to run | |||||
| <br /><br /> | |||||
| <font face="verdana" size="-1">ant -version</font> | |||||
| <br /><br /> | |||||
| and | |||||
| <br /><br /> | |||||
| <font face="verdana" size="-1">ant -diagnostics</font> | |||||
| <br /><br /> | |||||
| to be sure. Also, we highly recommend that you run Ant with | |||||
| an empty CLASSPATH. If any other version of Ant can be | |||||
| loaded from the CLASSPATH, many types of errors may happen | |||||
| because of incompatible classes being loaded.</p> | |||||
| <p>See <a href="faq.html">the FAQ</a> for <a href="faq.html#NoClassDefFoundError">some</a> <a href="faq.html#InstantiationException">examples</a>, but many | |||||
| other problems are a result of an old version of Ant on your | |||||
| system as well.</p> | |||||
| <h4 class="subsection"> | |||||
| <a name="Read the Manual"></a> | <a name="Read the Manual"></a> | ||||
| Read the Manual | Read the Manual | ||||
| </h4> | </h4> | ||||
| @@ -623,6 +623,17 @@ shell-prompt> m4 foo.m4 > foo | |||||
| </faqsection> | </faqsection> | ||||
| <faqsection title="It doesn't work (as expected)"> | <faqsection title="It doesn't work (as expected)"> | ||||
| <faq id="genral-advice"> | |||||
| <question>General Advice</question> | |||||
| <answer> | |||||
| <p>There are many reasons why Ant doesn't behave as | |||||
| expected, not all of them are due to Ant bugs. See our <a | |||||
| href="problems.html">Having Problems?</a> page for hints that | |||||
| may help pinning down the reasons for your problem.</p> | |||||
| </answer> | |||||
| </faq> | |||||
| <faq id="always-recompiles"> | <faq id="always-recompiles"> | ||||
| <question>Why does Ant always recompile all my Java files?</question> | <question>Why does Ant always recompile all my Java files?</question> | ||||
| <answer> | <answer> | ||||
| @@ -34,6 +34,32 @@ | |||||
| you in the right direction. | you in the right direction. | ||||
| </p> | </p> | ||||
| <subsection name="Ensure that you are actually running the version of Ant that you think you do"> | |||||
| <p>Many tools include a version of Ant and some Operating | |||||
| Systems even install it by default now, so you may have a | |||||
| version of Ant installed that you haven't been aware of.</p> | |||||
| <p>One of the first things to do is to run | |||||
| <br></br><br></br> | |||||
| <font face="verdana" size="-1">ant -version</font> | |||||
| <br></br><br></br> | |||||
| and | |||||
| <br></br><br></br> | |||||
| <font face="verdana" size="-1">ant -diagnostics</font> | |||||
| <br></br><br></br> | |||||
| to be sure. Also, we highly recommend that you run Ant with | |||||
| an empty CLASSPATH. If any other version of Ant can be | |||||
| loaded from the CLASSPATH, many types of errors may happen | |||||
| because of incompatible classes being loaded.</p> | |||||
| <p>See <a href="faq.html">the FAQ</a> for <a | |||||
| href="faq.html#NoClassDefFoundError">some</a> <a | |||||
| href="faq.html#InstantiationException">examples</a>, but many | |||||
| other problems are a result of an old version of Ant on your | |||||
| system as well.</p> | |||||
| </subsection> | |||||
| <subsection name="Read the Manual"> | <subsection name="Read the Manual"> | ||||
| <p> | <p> | ||||
| The first step to take when you have a problem with Ant is to read | The first step to take when you have a problem with Ant is to read | ||||