summaryrefslogtreecommitdiff
path: root/check.xml
diff options
context:
space:
mode:
authorJesse N. Glick <jglick@apache.org>2004-12-10 23:19:28 +0000
committerJesse N. Glick <jglick@apache.org>2004-12-10 23:19:28 +0000
commit503492da237fecd5cd17d81aa4deb13177863bcc (patch)
tree868cfba29850d5757aeebf5daf402de2790f920c /check.xml
parent13435b6628d6de511f2bea4784a2f8a10c7173cf (diff)
downloadant-503492da237fecd5cd17d81aa4deb13177863bcc.tar.gz
1. Make checkstyle target work independently of CWD.
2. Add a target to display the text report inline, for easy hyperlink navigation. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'check.xml')
-rwxr-xr-xcheck.xml21
1 files changed, 13 insertions, 8 deletions
diff --git a/check.xml b/check.xml
index 61e059158..aba215ecd 100755
--- a/check.xml
+++ b/check.xml
@@ -18,13 +18,13 @@
</description>
<import file="build.xml"/>
- <property name="config.dir" value="${etc.dir}/checkstyle"/>
+ <property name="config.dir" location="${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.reportdir" location="${build.dir}/reports/checkstyle"/>
+ <property name="checkstyle.raw" location="${checkstyle.reportdir}/raw.xml"/>
+ <property name="stylesheet.html" location="${config.dir}/checkstyle-frames.xsl"/>
+ <property name="stylesheet.text" location="${config.dir}/checkstyle-text.xsl"/>
+ <property name="stylesheet.xdoc" location="${config.dir}/checkstyle-xdoc.xsl"/>
<property name="checkstyle.basedir" location="${java.dir}"/>
@@ -35,7 +35,7 @@
<taskdef resource="simiantask.properties"/>
<taskdef resource="checkstyletask.properties"/>
- <target name="checkstyle" description="--> checks Ant codebase according to ${config.dir}/chestyle-config">
+ <target name="checkstyle" description="--> checks Ant codebase according to ${config.dir}/checkstyle-config">
<mkdir dir="${checkstyle.reportdir}"/>
<checkstyle config="${config.dir}/checkstyle-config" failOnViolation="false">
<formatter type="xml" toFile="${checkstyle.raw}"/>
@@ -60,6 +60,11 @@
out="${checkstyle.reportdir}/report.txt">
</style>
</target>
+
+ <target name="textreport-display" depends="textreport" description="--> generates a text checkstyle report and displays it immediately">
+ <loadfile property="report" srcfile="${checkstyle.reportdir}/report.txt"/>
+ <echo>${report}</echo>
+ </target>
<target name="xdocreport" description="--> generates a xdoc checkstyle report">
<style in="${checkstyle.raw}" style="${stylesheet.xdoc}"
@@ -80,4 +85,4 @@
</simian>
</target>
-</project> \ No newline at end of file
+</project>