You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?xml version="1.0"?>
- <project default="checkstyle" name="CheckAnt">
-
- <import file="build.xml"/>
- <property name="config.dir" value="${etc.dir}/checkstyle"/>
-
- <property name="checkstyle.reportdir" value="${build.dir}/reports/checkstyle"/>
- <property name="checkstyle.raw" value="${checkstyle.reportdir}/raw.xml"/>
- <property name="stylesheet.html" value="${config.dir}/checkstyle-frames.xsl"/>
- <property name="stylesheet.text" value="${config.dir}/checkstyle-text.xsl"/>
- <property name="stylesheet.xdoc" value="${config.dir}/checkstyle-xdoc.xsl"/>
-
- <property name="checkstyle.basedir" location="${java.dir}"/>
-
- <!-- Ant Checkstyle report -->
- <property name="tocheck" value="**/*.java"/>
- <property name="javadoc.scope" value="public"/>
-
- <taskdef resource="simiantask.properties"/>
-
- <target name="checkstyle">
- <mkdir dir="${checkstyle.reportdir}"/>
- <taskdef resource="checkstyletask.properties"/>
- <checkstyle config="${config.dir}/checkstyle-config" failOnViolation="false">
- <formatter type="xml" toFile="${checkstyle.raw}"/>
- <fileset dir="${java.dir}">
- <include name="${tocheck}"/>
- <exclude name="**/bzip2/*.java"/>
- <exclude name="**/CVSPass.java"/>
- </fileset>
- </checkstyle>
- </target>
-
- <target name="htmlreport">
- <mkdir dir="${checkstyle.reportdir}"/>
- <style in="${checkstyle.raw}" style="${stylesheet.html}"
- out="${checkstyle.reportdir}/html/output.txt">
- <param name="basedir" expression="${checkstyle.basedir}"/>
- </style>
- </target>
-
- <target name="textreport">
- <style in="${checkstyle.raw}" style="${stylesheet.text}"
- out="${checkstyle.reportdir}/report.txt">
- </style>
- </target>
-
- <target name="xdocreport">
- <style in="${checkstyle.raw}" style="${stylesheet.xdoc}"
- out="${checkstyle.reportdir}/xdocs/index.xml">
- <param name="basedir" expression="${checkstyle.basedir}"/>
- </style>
- </target>
-
- <target name="dumptext" depends="checkstyle, textreport">
- <concat>
- <filelist dir="${checkstyle.reportdir}" files="report.txt"/>
- </concat>
- </target>
-
- <target name="simiancheck">
- <simian>
- <fileset dir="${java.dir}" />
- </simian>
- </target>
-
- </project>
|