compiling wholly biased source tree ant
say i have sources src/ tree (and presumably test/ tree). contend i accumulate wholly part tree. reasons since i competence wish various. only an example, i competence wish emanate smallest illusory jar (without including certain classes), i competence wish fastest accumulate i am compiling. i definitely wish accumulate dependencies, though!
this simply achieved management line with:
javac -d build/ -cp whatever -sourcepath src src/path/to/myclass.java
now, ant? javac termite :
the source finish directory
recursively scanned java
source files compile.
one excludes
includes
parameters, nonetheless mysterious purpose. fact, seems definitely setup includes
(not involuntary dependency lookup), even worst :
when both inclusion ostracism are
used, wholly files/directories that
review during slightest include
patterns don't review any the
bar patterns used.
thus, can't
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath"
excludes="**/*.java" includes="src/path/to/myclass.java" />
because accumulate anything :-(
is there any proceed achieving rudimentary management line javac
ant?
edited: conclude your answer, sadie, i'm usurpation it, since does work proceed i wondering question. nonetheless i have integrate comments (too enlarged critique domain your answer):
1) i review support (see links above), nonetheless it's misleading only includes
indeed also proud all else
2) only includes
termite logs something like
[javac] compiling 1 source record /my/path/to/build
even dependencies compiling (much) some-more only source file.
Comments
Post a Comment