Or should I downgrade? The project just plain looks out of date - does anyone have a recommendation on what tool I should use? I'm really interested in import statements. The Style enforcement can come later.
-----Original Message----- From: Daniel L. Boxwell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 12:22 AM To: Ant Users List Subject: RE: PMD I am using pmd version 1.0rc3, looks like there is a 1.02 out though, which I should probably upgrade to. Sorry for any confusion. -----Original Message----- From: Ciramella, Edward [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 8:33 PM To: 'Ant Users List' Subject: RE: PMD Is there a newer version? I get this error: The <pmd> task doesn't support the "reportfile" attribute. -----Original Message----- From: Daniel L. Boxwell [mailto:[EMAIL PROTECTED]] 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: <pmd reportfile="${basedir}/qa_pmd_violations.xml" rulesetfiles="rulesets/basic.xml,rulesets/unusedcode.xml" format="xml" verbose="false" printToConsole="true"> <fileset dir="${src.dir}" includes="**/*.java"/> </pmd> 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:[EMAIL PROTECTED]] 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: <pathelement path="${build.dir}"/> in my target that sets up my classpath? I'm building on W2k... -----Original Message----- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 1:54 PM To: Ant Users List Cc: [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
