ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject compile only valid java files, skipping uncompilable files
Date Wed, 12 Feb 2003 10:14:19 GMT

I would like to be able to compile all java-
files in a certain directory stucture and 
have them outputted to a destination dir. 
This in itself is very staightforward as
long as _all_ java-files in the source 
directory _can_ be compiled. But when there
are any file in the source directory that 
does not compile no class files at all will 
be put in the destnation dir!

In the certain situation I am in (I have some
"junitdoclet-generated" test java-stubs that 
does not compile (and intentionally I like to 
leave it that way)) I really need to get at 
least those class-files that do compile
to apear in the dest-dir. 

How do I do this? 
Please help me out here. 


- - - - - - - - - - - - - - - - - - - - - - 

The ant task looks like this

        <!-- Compile Java TEST classes for application -->
            <include name="**/*"/>
            <exclude name="**/ejb/**/*"/>
            <exclude name="**/web/**/*"/>

View raw message