cleaning up

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@990 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-09-25 19:03:51 +00:00
parent d888fb2dc0
commit 7395c803e5
2 changed files with 4 additions and 2 deletions

View File

@ -54,12 +54,11 @@ class Job
end
def checkout_code
`cvs -d#{@cvsroot} co #{@moduleDirectory}`
`cvs -Q -d#{@cvsroot} co #{@moduleDirectory}`
end
def run_pmd
cmd="java -jar pmd-1.0rc2.jar #{@sourceDirectory} html rulesets/unusedcode.xml > ../htdocs/reports/#{@unixName}.html"
puts cmd
`#{cmd}`
end

View File

@ -10,8 +10,11 @@ jobsDir.each { |candidate|
if candidate[".txt"]
title,unixname,moduleDir,srcDir = File.new("jobs/#{candidate}").read.split(":")
job = PMD::Job.new(title,unixname,moduleDir,srcDir)
puts "Checking out code"
job.checkout_code
puts "Running PMD"
job.run_pmd
puts "Cleaning up"
job.clear
end
rescue