diff --git a/pmd-web/src/pmd.rb b/pmd-web/src/pmd.rb index 7f9945ab05..caabd5c616 100644 --- a/pmd-web/src/pmd.rb +++ b/pmd-web/src/pmd.rb @@ -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 diff --git a/pmd-web/src/processor.rb b/pmd-web/src/processor.rb index f733c02996..5ce87a03de 100644 --- a/pmd-web/src/processor.rb +++ b/pmd-web/src/processor.rb @@ -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