I looked at a bunch of different examples and tried several options, but it seemed that I couldn’t work normally. It also seems that you cannot exclude the whole directory with javac, but only the files, which I suppose means that you cannot specify the package? Here is what I have:
<javac srcdir="src" destdir="WEB-INF/classes" excludes="path/to/excluded/package/*.java"> <classpath refid="compile.classpath"/> </javac>
javac ant
user4903
source share