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:
@ -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
|
||||
|
Reference in New Issue
Block a user