Some tweaking to skip empty jobs

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3461 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-04-29 02:40:13 +00:00
parent ddddfd1288
commit 5dfcbaf15b

View File

@ -157,12 +157,16 @@ if __FILE__ == $0
end
puts "Processing " + job.to_s
job.checkout_code
if File.exists?(job.src)
job.run_pmd
job.run_cpd
job.run_ncss
job.copy_up
job.clear
if File.exists?(job.src)
if Dir.glob("#{job.src}/**/*.java").empty?
puts "Skipping #{job} because no source files got checked out"
else
job.run_pmd
job.run_cpd
job.run_ncss
job.copy_up
job.clear
end
end
end
end