I've been told that you can specify only a directory, and javac will recursively compile all the code in the directory, e.g.:
javac -sourcepath ./src -d ./classes
without specifying the specific source files, and that javac can handle this, by compiling everything under src/.
I've tried it, checked the docs, etc., and can find no evidence this is true.
Also I'm told you can compile, using package names:
javac -sourcepath ./src -d ./classes com.my.package.name
And that javac will look in src and find com/my/package/name.java and/or com/my/package/name/*.java, and compile them.
Similarly, I've tried it, checked the docs, etc., and can't get it to work or find any evidence that it's ever worked.
Am I doing something wrong? Is it really possible to use javac this way? Or do you have to specify real filenames on the command line to javac, and to do anything like I'm describing, you have to start using a real build tool, like make or ant?