CVSROOT now stored in jobs file

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4020 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-11-30 04:51:38 +00:00
parent b77c37e63a
commit 5d55205d14
2 changed files with 396 additions and 299 deletions

File diff suppressed because it is too large Load Diff

View File

@ -39,17 +39,18 @@ class Job
REMOTE_REPORT_DIR="/home/groups/p/pm/pmd/htdocs/reports/"
attr_reader :unix_name, :mod, :title, :src
attr_accessor :barrels
def initialize(title, unix_name, mod, src )
def initialize(title, unix_name, mod, src, cvsroot)
@title = title
@unix_name = unix_name
@cvsroot = ":pserver:anonymous@cvs.sourceforge.net:/cvsroot/#{unix_name}"
@mod = mod
@src = src.strip
@cvsroot = cvsroot
end
def checkout_code
t = MyThread.new {
MyThread.ttl = 120
cmd = "cvs -Q -d#{@cvsroot} export -D tomorrow \"#{@src}\""
puts "running cmd: #{cmd}"
`#{cmd}`
}
t.join
@ -149,7 +150,7 @@ if __FILE__ == $0
jobs = []
tree = YAML.load(File.open("jobs.yaml"))
tree.keys.each {|key|
jobs << Job.new(key, tree[key]["cvsroot"], tree[key]["module"], tree[key]["srcdir"])
jobs << Job.new(key, tree[key]["unix_name"], tree[key]["module"], tree[key]["srcdir"], tree[key]["cvsroot"])
}
if ARGV.include?("-build")