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:
Tom Copeland
2003-02-28 16:57:33 +00:00
parent 9e80c6bf3b
commit 56b24dca17
3 changed files with 9 additions and 3 deletions

View File

@ -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()}\""

View File

@ -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: #{$!}"

View File

@ -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")) {