ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew.Goodno...@dana.com
Subject Problem with JAVAC task and FileSet not being used
Date Tue, 22 Jan 2002 13:36:12 GMT
Hi everyone,

I'm trying to exclude my EJB classes from the rest of the application
classses during a compile.  All the source files are located in the
${build.dir}/src directory.  I'd like to compile all the source files from
${build.dir}/classes - except anything, anywhere in a "session" package.
You can see from the debug output that the exclude is being understood and
selects only those files not in a "session" package.  BUT - what actually
gets compiled to ${build.dir}/classes includes *some* of the source files
NOT listed below.  In short, files are being included in the compile which
are not part of the fileset.  There are 18 files under ${build.dir}/src, 12
of them are listed below to be included in the compile, 14 actually end up
in the ${build.dir}/classes folder after the build has run.

Has anyone seen this before?



*** build.xml (excerpt) ***

<javac classpath="${classpath}" srcdir="${build.dir}/src" destdir="
${build.dir}/classes">
     <exclude name="com/dcc/**/session/**/*"/>
</javac>

*****************************



*** output (excerpt) ***

FileSet: Setup file scanner in dir C:\IT\Dev\Apps\Brumeister\build\src with
patternSet{ includes: [] excludes: [com/dcc/**/session/**/*] }
    [javac] com\dcc\brum\AccountingOwnerForm.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\AccountingOwnerForm.class

doesn't exist.
    [javac] com\dcc\brum\ApplicationResources.properties skipped - don't
know how to handle it
    [javac] com\dcc\brum\BrumUtils.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\BrumUtils.class doesn't
exist.
    [javac] com\dcc\brum\CheckLogonTag.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\CheckLogonTag.class
doesn't exist.
    [javac] com\dcc\brum\Constants.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\Constants.class doesn't
exist.
    [javac] com\dcc\brum\EditPurchaseOrderAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\EditPurchaseOrderAction.class

doesn't exist.
    [javac] com\dcc\brum\LogoffAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\LogoffAction.class
doesn't exist.
    [javac] com\dcc\brum\LogonAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\LogonAction.class
doesn't exist.
    [javac] com\dcc\brum\LogonForm.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\LogonForm.class doesn't
exist.
    [javac] com\dcc\brum\PurchaseOrderForm.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\PurchaseOrderForm.class
doesn't exist.
    [javac] com\dcc\brum\SavePurchaseOrderAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\SavePurchaseOrderAction.class

doesn't exist.
    [javac] com\dcc\brum\UnknownAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\UnknownAction.class
doesn't exist.
    [javac] com\dcc\brum\VerifyPurchaseOrderAction.java added as C:
\IT\Dev\Apps\Brumeister\build\classes\com\dcc\brum\VerifyPurchaseOrderAction.class

doesn't exist.
    [javac] Compiling 12 source files to C:
\IT\Dev\Apps\Brumeister\build\classes
    [javac] Using jikes compiler
FileSet: Setup file scanner in dir C:\IT\Tools\jdk1.3.1_01\jre\lib\ext with
patternSet{ includes: [*] excludes: [] }
    [javac] Compilation args: jikes -d C:
\IT\Dev\Apps\Brumeister\build\classes -classpath C:
\IT\Dev\Apps\Brumeister\build\classes;C:
\IT\Tools\jdk1.3.1_01\lib\tools.jar;
    [javac] Files to be compiled:
    C:
\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\AccountingOwnerForm.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\BrumUtils.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\CheckLogonTag.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\Constants.java
    C:
\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\EditPurchaseOrderAction.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\LogoffAction.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\LogonAction.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\LogonForm.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\PurchaseOrderForm.java
    C:
\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\SavePurchaseOrderAction.java
    C:\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\UnknownAction.java
    C:
\IT\Dev\Apps\Brumeister\build\src\com\dcc\brum\VerifyPurchaseOrderAction.java

***************************

Andy

****************************
Andrew Goodnough
Dana Commercial Credit
Programmer


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message