ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3198] - The <javac> task doesn't work properly with multi-element sourceparh
Date Tue, 10 Feb 2004 10:01:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3198>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3198

The <javac> task doesn't work properly with multi-element sourceparh





------- Additional Comments From peter.reilly@corvil.com  2004-02-10 10:01 -------
The issue with the javac task is I think the fact that it is a
 MatchingTask and cannot take embebedd filesets as nested elements.

The person  wants to do this:

javac -sourcepath src1;src2 src1/x/Test.java src2/x/AnotherClass.java

where src2/x/Test.java and src1/x/AnotherClass.java may exist, but
the user does not want to compile them.

A javac task with embedded srcfileset may look like this:
<javac destdir="classes">  <!-- note: no source dir set -->
  <srcfileset dir="src1"> <!-- note: this gets mapped to -sourcepath src1 -->
     <include name="x/Test.java"/>
  </srcfileset>
  <srcfileset dir="src2" includes="x/AnotherClass.java"/>
</javac>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message