cleaning up
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@990 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user