Modified to use new -shortnames thing

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2109 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-07-21 13:13:58 +00:00
parent 5b3d7186c2
commit a31ff8c2e6

View File

@ -22,11 +22,7 @@ class Job
@location = location
@title = title
@unixName = unixName
if (@location == "Sourceforge")
@cvsroot = ':pserver:anonymous@cvs1:/cvsroot/' + unixName
else
@cvsroot = ':pserver:anoncvs@cvs.apache.org:/home/cvspublic'
end
@moduleDirectory = moduleDirectory
@sourceDirectory = sourceDirectory.strip
end
@ -49,7 +45,7 @@ class Job
`#{cmd}`
end
def run_pmd
cmd="java -jar pmd-1.1.jar \"#{@sourceDirectory}\" html rulesets/unusedcode.xml > \"#{reportFile}\""
cmd="java -jar pmd-1.1.jar \"/home/users/t/to/tomcopeland/pmdweb/#{@sourceDirectory}\" html rulesets/unusedcode.xml -shortnames > \"#{reportFile}\""
`#{cmd}`
arr = IO.readlines(reportFile())
newFile=File.open(reportFile(), "w")