I use tree to list the contents of a java project, including files with .java, .properties and .xml extensions, and excluding compiled files, etc.
tree -P *.java -P *.properties -P *.xml -I **/META-INF/** --prune
-P Include only the paths that matches the pattern-I Exclude the paths that matches the pattern--prune Exclude empty directories from the outputSince the formatting uses too much spaces, using sed is possible to make the output compact (replacing two spaces by one).
sed 's/ / /g'
linux command