Re: getting started
"Lars Kühne" <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
On 7/13/07, Simon wrote: > so initially I want to run checkstyle from the command line so I > downloaded the zip file. On past projects all source was under a single > directory and could run checkstyle just fine. > > Now we are using maven2 and have many, many subprojects like > release/proj1/src/main/java/com/... and release/proj2/src/main/java/com... > > How do I tell checkstyle where to find the source code to run on if > there are multiple directories like this? The command line frontend currently does not support multiple source directories. You could write a little shell script visits each subproject and calls the command line individually for each of them. I think your best option would be to stop using the commandline and start using the checkstyle plugin for maven2. After all, easy tool integration via plugins is one the main selling points of maven, right? Cheers, Lars ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/