Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 17141 invoked from network); 4 Feb 2003 04:56:57 -0000 Received: from unknown (HELO empburexch.burlington.emptoris.com) (63.111.224.162) by daedalus.apache.org with SMTP; 4 Feb 2003 04:56:57 -0000 Received: by empburexch.burlington.emptoris.com with Internet Mail Service (5.5.2653.19) id ; Mon, 3 Feb 2003 23:56:19 -0500 Message-ID: <15717BB71A5CD411A01600508BDCC2E2019392FD@empburexch.burlington.emptoris.com> From: "Ciramella, Edward" To: 'Ant Users List' Subject: RE: PMD Date: Mon, 3 Feb 2003 23:56:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2CC09.C0E76F80" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2CC09.C0E76F80 Content-Type: text/plain; charset="iso-8859-1" Really looks like some of us have different versions of either the documentation (the example posted on the board doesn't work) or the code. Below is my target: (there are extra tabs and returns for legibility)... But no matter what I do I get the: BUILD FAILED file:C:/IMPORT-TESTING/build.xml:22: net.sourceforge.pmd.PMDException: Error while parsing com\avinamart\ApplicationServic es\ServiceManager.java When this error surfaces, PMD has already rifled through a dozen or so classes... Looks like this [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\ReportingServiceIntf .java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\RFIServiceIntf.java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\Role.java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\RoutedServiceIntf.ja va [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\RuleEngineServiceInt f.java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\ScenarioDataServiceI ntf.java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\ScenarioOptimization ServiceIntf.java [pmd] C:\IMPORT-TESTING\src\com\avinamart\ApplicationServices\ScenarioReportServic eIntf.java ...and so on, then: BUILD FAILED file:C:/IMPORT-TESTING/build.xml:31: net.sourceforge.pmd.PMDException: Error while parsing com\avinamart\ApplicationServic es\ServiceManager.java at net.sourceforge.pmd.ant.PMDTask.execute(PMDTask.java:185) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) --- Nested Exception --- net.sourceforge.pmd.PMDException: Error while parsing com\avinamart\ApplicationServices\ServiceManager.java at net.sourceforge.pmd.PMD.processFile(PMD.java:51) at net.sourceforge.pmd.PMD.processFile(PMD.java:63) at net.sourceforge.pmd.ant.PMDTask.execute(PMDTask.java:181) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166) at org.apache.tools.ant.Task.perform(Task.java:319) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) -----Original Message----- From: Ciramella, Edward [mailto:ECiramella@emptoris.com] Sent: Monday, February 03, 2003 11:33 PM To: 'Ant Users List' Subject: RE: PMD Is there a newer version? I get this error: The task doesn't support the "reportfile" attribute. -----Original Message----- From: Daniel L. Boxwell [mailto:BoxwellDL@C-IV.org] Sent: Monday, February 03, 2003 4:29 PM To: Ant Users List Subject: RE: PMD We are using PMD on W2K and Solaris with quite a bit of success. Our target looks like: Everything I see below points to the problem being with your .java file. Does another simple java file work? --Dan -----Original Message----- From: Ciramella, Edward [mailto:ECiramella@emptoris.com] Sent: Monday, February 03, 2003 1:14 PM To: 'Ant Users List' Subject: RE: PMD All of the above - I'm running ant 1.5.1 and java 1.3.1_06 As far as the classpath suggestion, why are you suggesting to export it? Isn't it enough to have something like: in my target that sets up my classpath? I'm building on W2k... -----Original Message----- From: Martin [mailto:mgainty@hotmail.com] Sent: Wednesday, September 04, 2002 1:54 PM To: Ant Users List Cc: ECiramella@emptoris.org Subject: Re: PMD Ed- Did you check the obvious stuff i.e. -Package com.avinamart.applicationServices; //at top of file -That your directory structure mirrors Package name i.e. if your base directory is C:\Base SET CLASSPATH=C:\Base\classes;%CLASSPATH% export CLASSPATH then the file C:\Base\classes\com\avinamart\applicationServices\ServiceManager.class exists -shortening the directory structure in Windows FAT/32 implementations to C:\Base\classes\com\AVINAM~1\APPLIC~1?? I had PMD running fine at the last job I had and this is what I did to overcome these situations Keep us apprised, -Martin ----- Original Message ----- From: "Ciramella, Edward" To: "'Ant Users List'" Sent: Monday, February 03, 2003 4:33 PM Subject: PMD > Is anyone using PMD? > > I keep getting an error that says something like this: > file:C:/IMPORT-TESTING/build.xml:22: > net.sourceforge.pmd.PMDException: > Error while parsing COM\avinamart\ApplicationServices\ServiceManager.java > > But with verbose on (for both ant and PMD), it doesn't give me what the > actual error is. > The file compiles, and if I remove all the import statements, it still gives > this error. > > Is there a better tool than PMD? > --------------------------------------------------------------------- To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: ant-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: ant-user-help@jakarta.apache.org ------_=_NextPart_001_01C2CC09.C0E76F80--