Browse Source

Added a note about how to use the srcdir-attribute (not include packages there)

because this seems to become a very frequently asked question.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268663 13f79535-47bb-0310-9956-ffa450edef68
master
Nico Seessle 24 years ago
parent
commit
2cd09f2f16
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      docs/manual/CoreTasks/javac.html

+ 6
- 1
docs/manual/CoreTasks/javac.html View File

@@ -50,7 +50,7 @@ classname in the "build.compiler" property.
</tr>
<tr>
<td valign="top">srcdir</td>
<td valign="top">location of the java files.</td>
<td valign="top">location of the java files. (See Notes at the end)</td>
<td align="center" valign="top">Yes, unless nested <code>&lt;src&gt;</code> elements are present.</td>
</tr>
<tr>
@@ -241,6 +241,11 @@ the property <code>src2</code>. This can also be represented using nested
for every use of an external compiler, this may be a problem of the JDK you are using.
This problem may occur with all JDKs &lt; 1.2.</p>

<p><b>Note:</b> If you wish to compile only source-files located in some packages below a
common root you should not include these packages in the srcdir-attribute. Use include/exclude-attributes
or elements to filter for these packages. If you include part of your package-structure inside the srcdir-attribute
(or nested src-elements) Ant will start to recompile your sources everytime you call it.</p>

<hr>
<p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
Reserved.</p>


Loading…
Cancel
Save