Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain how to use pmd validation in ant script?



Explain how to use pmd validation in ant script?..

Answer / Mrityunjay Kumar

To use PMD (a Java code static analysis tool) with Ant, first ensure you have the PMD taskdef in your build.xml (or include it if using a third-party library). Then, define a target to run PMD checks on source files. Here's an example:

```xml
<project name="My Project" default="check">
<target name="check">
<pmd ruleSet="ruleset.xml" srcdir="src" targetDir="bin"/>
</target>
</project>
```
In this example, the `check` target runs PMD checks on all .java files within the `src` directory and saves any results in the `bin` directory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Ant Interview Questions

What is a build tool?

1 Answers  


How we can set the path environment variable of ant?

1 Answers  


Explain how to make ant user interactive?

1 Answers  


What is history of ant?

1 Answers  


Explain how to use clean in ant script?

1 Answers  


What is different between ant and make?

1 Answers  


What is ivy?

1 Answers  


How to use ant-contrib tasks?

1 Answers  


How we can echo message in ant?

1 Answers  


How we can set compile target using ant?

1 Answers  


How we can set path path and classpath into an ant build file?

1 Answers  


Explain how to use pmd validation in ant script?

1 Answers  


Categories