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:
@ -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")
|
||||
|
Reference in New Issue
Block a user