Added more time info
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1495 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -45,6 +45,10 @@ class Job
|
||||
}
|
||||
t.join
|
||||
end
|
||||
|
||||
def checkOutOK
|
||||
return File.exists?(@sourceDirectory)
|
||||
end
|
||||
|
||||
def run_pmd
|
||||
cmd="java -jar pmd-1.03.jar \"#{@sourceDirectory}\" html rulesets/unusedcode.xml > \"#{reportFile()}\""
|
||||
|
@ -17,8 +17,10 @@ jobsDir.each { |candidate|
|
||||
#puts "Processing #{job}"
|
||||
job.clear
|
||||
job.checkout_code
|
||||
job.run_pmd
|
||||
job.clear
|
||||
if (job.checkOutOK)
|
||||
job.run_pmd
|
||||
job.clear
|
||||
end
|
||||
end
|
||||
rescue
|
||||
puts "Exiting with error: #{$!}"
|
||||
|
@ -27,7 +27,7 @@ sub default() {
|
||||
my $lastruntime=<FILE>;
|
||||
close(FILE);
|
||||
print br();
|
||||
print "The last run finished at ", $lastruntime;
|
||||
print "This report is run 10 minutes past the hour at midnight, 3, 6, 9, 12, 15, 18, and 21 hours. The last run finished at ", $lastruntime;
|
||||
print hr();
|
||||
|
||||
if (param("unixname")) {
|
||||
|
Reference in New Issue
Block a user