Cleaned up start/stop time stuff
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2324 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -5,7 +5,6 @@ require '/home/tom/data/pmd/pmd-web/src/pmd.rb'
|
|||||||
Dir.chdir(PMD::Job::ROOT);
|
Dir.chdir(PMD::Job::ROOT);
|
||||||
|
|
||||||
jobsDir = Dir.new("jobs/")
|
jobsDir = Dir.new("jobs/")
|
||||||
start=Time.now
|
|
||||||
jobsDir.each { |candidate|
|
jobsDir.each { |candidate|
|
||||||
begin
|
begin
|
||||||
if candidate[".txt"]
|
if candidate[".txt"]
|
||||||
@ -21,6 +20,7 @@ jobsDir.each { |candidate|
|
|||||||
job.run_pmd
|
job.run_pmd
|
||||||
job.run_cpd
|
job.run_cpd
|
||||||
job.ncss
|
job.ncss
|
||||||
|
`echo #{Time.now} > lastruntime.txt`
|
||||||
job.copy_up
|
job.copy_up
|
||||||
job.clear
|
job.clear
|
||||||
end
|
end
|
||||||
@ -29,7 +29,3 @@ jobsDir.each { |candidate|
|
|||||||
puts "Exiting with error: #{$!}"
|
puts "Exiting with error: #{$!}"
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
stop=Time.now
|
|
||||||
|
|
||||||
`echo #{stop} > lastruntime.txt`
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user