*.jar
means all the .jar files in only within the base directory, the directory specified in <fileset dir="${master.classpath}/lib">
. This will not include the files in the subdirectories.
In **/*.jar
, **
(used as the directory name) is a special feature, that means all the (nested) subdirectories.
Check out an example with explanation here.