History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-817
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: louz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

View Source from PMD Report Error (with hg)

Created: 27/Jan/11 04:03 AM   Updated: 29/Jan/11 07:01 AM
Component/s: None
Affects Version/s: 3.1.18
Fix Version/s: 3.1.19

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. ErrorMessage.jpg
(262 kb)
Environment:
os: windows xp
vcs: hg
maven: 3.0.2


 Description  « Hide
After using maven to generate the PMD Report , when I click the "View Source Code" link button , I get the follow Error Message:

Root cause:

com.pmease.quickbuild.QuickbuildException: Failed to run command: "C:\Program Files\TortoiseHg\hg.exe" -y cat -r 7555be8d8253c8b6bda16294785277856a7cbd93 /a-simple/src/main/java/org/sonatype/mavenbook/App.java
Command return code: -1
Command error output: abort: /a-simple/src/main/java/org/sonatype/mavenbook/App.java not under root
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.buildException(Commandline.java:372)
at com.pmease.quickbuild.execution.Commandline$ExecuteResult.checkReturnCode(Commandline.java:387)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:92)
at com.pmease.quickbuild.plugin.scm.helper.ScmCli.run(ScmCli.java:81)
at com.pmease.quickbuild.plugin.scm.mercurial.HgCli.show(HgCli.java:277)
at com.pmease.quickbuild.plugin.scm.mercurial.HgSourceViewSupport.readSourceByRevision(HgSourceViewSupport.java:52)
at com.pmease.quickbuild.plugin.scm.mercurial.HgSourceViewSupport.readSourceByRevision(HgSourceViewSupport.java:1)
at com.pmease.quickbuild.model.Build.readSourceFile(Build.java:629)
at com.pmease.quickbuild.model.Build.readSourceFile(Build.java:620)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at com.pmease.quickbuild.model.Build$$EnhancerByCGLIB$$5d21ec89.readSourceFile(<generated>)
at com.pmease.quickbuild.plugin.report.engine.renderer.item.ViewSourceLinkItem$ViewSourceLink.doViewSource(ViewSourceLinkItem.java:118)
at com.pmease.quickbuild.plugin.report.engine.renderer.item.ViewSourceLinkItem$ViewSourceLink.onClick(ViewSourceLinkItem.java:99)
at org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:224)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
at ........


I tried the command:
  ' "C:\Program Files\TortoiseHg\hg.exe" -y cat -r 7555be8d8253c8b6bda16294785277856a7cbd93 /a-simple/src/main/java/org/sonatype/mavenbook/App.java '

in the error output in my windows console and get the same error message, but, when I tried this:

' "C:\Program Files\TortoiseHg\hg.exe" -y cat -r 7555be8d8253c8b6bda16294785277856a7cbd93 a-simple/src/main/java/org/sonatype/mavenbook/App.java '

it works!, so I think this maybe a bug

 All   Comments   Work Log   Change History      Sort Order:
louz [27/Jan/11 04:05 AM]
This is the Error Message