1. Access a server
cvs -d
:pserver:anonymous@cvsroot.sourcefocus.com:/cvs/
Type:
Pserver
Ext
(via ssh)
Example form Spring
symbolic names:
release-1-2-3: 1.61
release-1-2-2: 1.59
release-1-2-1: 1.55
release-1-2: 1.52
release-1-2-rc2: 1.
release-1-2-rc1: 1.
release-1-1-5: 1.41
release-1-1-4: 1.38
release-1-1-3: 1.35
release-1-1-2: 1.32
release-1-1-1: 1.30
release-1-1: 1.28
release-1-1-rc2: 1.
release-1-1-rc1: 1.
release-1-0-2: 1.20
release-1-0-1: 1.17
release-1-0: 1.16
release-1-0-rc2: 1.
release-1-0-rc1: 1.
release-1-0-m4: 1.9
release-1-0-m3: 1.7
release-1-0-m2: 1.5
release-1-0-m1: 1.4
initial: 1.1.1.1
spring: 1.1.1
2. using checkstyle with an ant task:
http://checkstyle.sourceforge.net/anttask.html
Run checkstyle in an automated build and send an email report if style
violations are detected
<target
name="checkstyle"
description="Generates a report
of code convention violations.">
<checkstyle
config="docs/sun_checks.xml"
failureProperty="checkstyle.failure"
failOnViolation="false">
<formatter type="xml"
tofile="checkstyle_report.xml"/>
<fileset dir="src"
includes="**/*.java"/>
</checkstyle>
<style in="checkstyle_report.xml"
out="checkstyle_report.html" style="checkstyle.xsl"/>
</target>
<!--
run this target as part of automated build -->
<target
name="checkstyle-nightly"
depends="checkstyle"
if="checkstyle.failure"
description="Sends email if
checkstyle detected code conventions violations.">
<!-- use your own server and email
addresses below. See Ant documentation for details -->
<mail from="qa@some.domain"
tolist="someone@some.domain,someoneelse@some.domain"
mailhost="mailbox.some.domain"
subject="Checkstyle violation(s)
in project ${ant.project.name}"
files="checkstyle_report.html"/>
</target>