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=4981>.
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=4981

javac exclude fails intermittently

           Summary: javac exclude fails intermittently
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When building Tomcat 4.0.1 from source, Ant seems to disregard the specified 
exclude tag when compiling Java source files:

<!-- The following snippet is from Tomcat's catalina/build.xml -->

<!-- Compile internal server components -->
<javac srcdir="src/share" destdir="${catalina.build}/server/classes"
       debug="${compile.debug}" deprecation="${compile.deprecation}"
       optimize="${compile.optimize}"
       excludes="**/CVS/**">
    <!-- ... -->
    <exclude name="org/apache/catalina/net/SSLServerSocketFactory.java" 
    unless="compile.jsse"/>
    <!-- ... -->
</javac>

The compile.jsse property has not been set, but when building Tomcat from 
scratch (clean), the SSLServerSocketFactory.java file tries to get compiled.  
After it errors out (because the file fails to compile, since it shouldn't get 
compiled), I run ant again, but this time the build goes through just fine.

I suspect this is a bug in Ant 1.4.1.

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

Reply via email to