ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: ant/docs/manual/CoreTasks javac.html
Date Fri, 15 Aug 2003 09:11:47 GMT
bodewig     2003/08/15 02:11:47

  Modified:    docs/manual/CoreTasks javac.html
  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="">Ant FAQ</a>
   for additional information.</p>
  +If you wish to compile only files explicitly specified and disable
  +javac's default searching mechanism then you can unset the sourcepath
  +<pre>  &lt;javac sourcepath=&quot;&quot; srcdir=&quot;${src}&quot;
  +         destdir=&quot;${build}&quot; &gt;
  +    &lt;include name="**/*.java" /&gt;
  +    &lt;exclude name="**/" /&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><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:
For additional commands, e-mail:

View raw message