In Ant, what's the difference between <sourcepath> and <src> elements?

In Ant, what's the difference between <sourcepath>and <src>? I use them as auxiliary elements <javac>. I read the manual, but maybe I skipped the definition <src>.

Thank!

+3
source share
2 answers

<javac>tasks <sourcepath>child matches the -sourcepathcommand flag javac. This flag indicates directories, JAR files, or ZIP files containing source files for compilation.

javac , . javac, <src> ( srcdir) <javac>.

, .

0

sourcepath - . , , , javac.

srcdir - sourcepath, , ( ).

src - . , , . , .

+2

Source: https://habr.com/ru/post/1742026/


All Articles