bodewig     2003/08/15 02:11:47

  Modified:    docs/manual/CoreTasks javac.html
  Log:
  Add example for sourcepath="".
  
  PR: 22427
  Submitted by: Jaroslav Tulach <jtulach at netbeans dot org>
  
  Revision  Changes    Path
  1.42      +14 -0     ant/docs/manual/CoreTasks/javac.html
  
  Index: javac.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/javac.html,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- javac.html        14 Aug 2003 14:37:07 -0000      1.41
  +++ javac.html        15 Aug 2003 09:11:47 -0000      1.42
  @@ -499,6 +499,20 @@
   <a href="http://ant.apache.org/faq.html#always-recompiles";>Ant FAQ</a>
   for additional information.</p>
   
  +<p>
  +If you wish to compile only files explicitly specified and disable
  +javac's default searching mechanism then you can unset the sourcepath
  +attribute:
  +<pre>  &lt;javac sourcepath=&quot;&quot; srcdir=&quot;${src}&quot;
  +         destdir=&quot;${build}&quot; &gt;
  +    &lt;include name="**/*.java" /&gt;
  +    &lt;exclude name="**/Example.java" /&gt;
  +  &lt;/javac&gt;</pre>
  +That way the javac will compile all java source files under 
&quot;${src}&quot;
  +directory but skip the examples. The compiler will even produce errors if 
some of
  +the non-example files refers to them.
  +</p>
  +
   <p><b>Note:</b> If you are using Ant on Windows and a new DOS window pops up
   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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to