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 37148] - javac nested <src> element troube with excludes
Date Thu, 14 Sep 2006 21:52:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37148


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From peterreilly@apache.org  2006-09-14 21:52 -------
The error is not that strange
Assuming out have a directory layout:
  src/org/acme/A.java
  src/poi/C.java
  gen/org/acme/plane/B.java

<javac srcdir="src" destdir="classes"/>
corresponds to the command line:

javac -sourcepath src -d classes src/org/acme/A.java src/poi/C.java

<javac destdir="classes">
   <src path="src"/>
   <src path="gen"/>
</java>
corresponds to:
javac -d classes \
      -sourcepath src src/org/acme/A.java src/poi/C.java \
      -sourcepath gen gen/org/acme/plane/B.java

<javac destdir="classes" excludes="poi/**/*">
   <src path="src"/>
   <src path="gen"/>
</java>
corresponds to:
javac -d classes \
      -sourcepath src src/org/acme/A.java \
      -sourcepath gen gen/org/acme/plane/B.java

and 
<javac destdir="classes">
   <src><fileset dir="src" excludes="poi/**/*"/></src>
   <src path="src"/>
   <src path="gen"/>
</java>
corresponds to something like:
javac -sourcepath src/org/acme/A.java ..

"src/org/acme/A.java" is not a directory, hence the error message.



  
   

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message