AntでCheckstyleとJalopy
ベタベタのままだけれどメモ。
<project name="sample-project" default="checkstyle"> <taskdef resource="checkstyletask.properties" classpath="C:\Eclipse3_3\plugins\com.atlassw.tools.eclipse.checkstyle_4.4.0\lib\checkstyle-all-4.4.jar"/> <target name="checkstyle"> <checkstyle config="C:\Eclipse3_3\plugins\com.atlassw.tools.eclipse.checkstyle_4.4.0\sun_checks.xml" failureProperty="checkstyle.failure" failOnViolation="false"> <formatter type="xml" tofile="checkstyle_report.xml"/> <fileset dir="../src/sample" includes="**/*.java"/> </checkstyle> </target> <target name="jalopy"> <!-- Jalopyのインストールディレクトリを指定する --> <property name="net.sourceforge.jalopy.dir" value="C:\Eclipse3_3\plugins\de.hunsicker.jalopy.plugin.eclipse_0.2-1.5rc3"/> <taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin"> <classpath id="net.sourceforge.jalopy.path"> <fileset dir="${net.sourceforge.jalopy.dir}"> <include name="*.jar"/> </fileset> </classpath> </taskdef> <jalopy fileformat="AUTO" history="file" historymethod="adler32" loglevel="info" threads="2" backup="true"> <fileset dir="../src/sample" includes="**/*.java" /> </jalopy> </target> </project>