diff --git a/pmd-web/src/pmd.rb b/pmd-web/src/pmd.rb index 5e3efadd5b..7f9945ab05 100644 --- a/pmd-web/src/pmd.rb +++ b/pmd-web/src/pmd.rb @@ -50,7 +50,7 @@ class Job @unixName = unixName @cvsroot = ':pserver:anonymous@cvs.' + unixName + '.sourceforge.net:/cvsroot/' + unixName @moduleDirectory = moduleDirectory - @sourceDirectory = sourceDirectory + @sourceDirectory = sourceDirectory.strip end def checkout_code diff --git a/pmd-web/src/processor.rb b/pmd-web/src/processor.rb index 853e3a69f5..f733c02996 100644 --- a/pmd-web/src/processor.rb +++ b/pmd-web/src/processor.rb @@ -1,5 +1,7 @@ #!/usr/bin/ruby +Dir.chdir("/home/groups/p/pm/pmd/cgi-bin"); + require 'pmd.rb' jobsDir = Dir.new("jobs")