Results 1 to 9 of 9
Thread: How to apply PMD for JSP,HTML
- 01-25-2011, 10:38 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
- 01-25-2011, 10:56 AM #2
Hi. You can read about this question on the official site.
see PMD - Rule Set: Basic JSP rulesSkype: petrarsentev
http://TrackStudio.com
- 01-25-2011, 11:06 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
Hi petr,
Thanks for your help.
I have some problem petr. In my eclipse, there is no option like PMD is displaying for JSP and html application.
In the site you mentioned its given like from version PMD3.6,JSP and HTML rules are available.
But when i see the rules by clicking
windows--> preference--> PMD --> Rules configuration
,there is no rules for jsp and html.
How can i resolve this problem ?
Thanks in advance :):)
- 01-25-2011, 11:48 AM #4
Did you read this topic? You need create new file, which consist of roles for jsp and html
Use one of the current rulesets as an example. Copy and paste it into your new file, delete all the old rules from it, and change the name and description. Like this:Skype: petrarsentev
http://TrackStudio.com
- 01-25-2011, 11:57 AM #5
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
Hi petr,
Can u pls tell me in detail with some example...
Do we need to delete all the existing rules ?
- 01-25-2011, 12:21 PM #6
- 01-25-2011, 01:16 PM #7
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
Hi petr,
I have uploaded the rules in the PMD.But still have a problem..
Problem is for example when i do some simple java code,When i right click the file it displays one option called PMD..In that it shows check code with PMD.So i can check the coding standard for that particular file.
But if i do some jsp or html application there is no option called PMD displayed when i right click on the html or jsp file.So i don't know how to check the coding standard for that html and jsp file.
Can u pls check it and let me know?
- 01-28-2011, 06:54 AM #8
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
Hi petr,
Can u pls check it and let me know?
- 01-28-2011, 09:48 AM #9
Sorry. I not use Eclipse I use JetBrain IDEA. It is works fine. but you try use ant tools for this. In tutorial have full information how you can do it.
PMD - Ant TaskSkype: petrarsentev
http://TrackStudio.com
Similar Threads
-
How to apply a patch (Call Matlab from Java)
By Niroshan in forum Advanced JavaReplies: 6Last Post: 07-09-2011, 02:55 AM -
How to apply system cls in java...
By cyzash in forum New To JavaReplies: 1Last Post: 02-20-2010, 11:50 AM -
Java GUI app used to apply XSLT to XML's
By fawkes711 in forum XMLReplies: 1Last Post: 12-09-2009, 08:59 AM -
how to apply gravity in tossing an egg
By santhoshnanjappa in forum New To JavaReplies: 1Last Post: 07-01-2009, 02:26 PM -
Kindly Help me to apply Stylesheet
By AMATYA-CHANAKYA in forum Advanced JavaReplies: 0Last Post: 03-18-2008, 06:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks