<include name="fop.jar"/>
</fileset>
</path>
+
+ <path id="checkstylepath">
+ <fileset dir="lib">
+ <include name="checkstyle-all-*.jar"/>
+ </fileset>
+ </path>
<!-- =================================================================== -->
<!-- Initialization target -->
</java>
</target>
+ <!-- =================================================================== -->
+ <!-- Checkstyle -->
+ <!-- =================================================================== -->
+ <target name="checkstyle" depends="prepare" description="Runs Checkstyle for a code quality report">
+ <available property="checkstyle.available" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="checkstylepath"/>
+ <fail message="Please put checkstyle-all-*.jar in the lib directory. Get it from http://checkstyle.sourceforge.net" unless="checkstyle.available"/>
+ <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="checkstylepath"/>
+ <checkstyle properties="checkstyle.cfg" failonviolation="false">
+ <fileset dir="${src.dir}" includes="org/apache/fop/**/*.java"/>
+ <formatter type="plain" toFile="${build.dir}/checkstyle_report.txt"/>
+ <formatter type="xml" toFile="${build.dir}/checkstyle_report.xml"/>
+ </checkstyle>
+ <available property="checkstyle.stylesheet.available" file="checkstyle-noframes.xsl"/>
+ <antcall target="checkstyle-html"/>
+ </target>
+ <target name="checkstyle-html" if="checkstyle.stylesheet.available">
+ <style in="${build.dir}/checkstyle_report.xml" out="${build.dir}/checkstyle_report.html" style="checkstyle-noframes.xsl"/>
+ </target>
+
<!-- =================================================================== -->
<!-- Creates the distribution -->
<!-- =================================================================== -->
--- /dev/null
+checkstyle.allow.tabs = no
+checkstyle.tab.width = 4
+checkstyle.allow.noauthor = yes
+checkstyle.maxlinelen = 100
+checkstyle.javadoc.scope = protected
+checkstyle.ignore.importlength = yes
+checkstyle.ignore.whitespace.cast = yes
+checkstyle.allow.protected = yes
+checkstyle.header.file = checkstyle.header
+checkstyle.header.regexp = yes
\ No newline at end of file
--- /dev/null
+/\*
+ \* \$Id.*\$
+ \* Copyright \(C\) [\d\-]*2002 The Apache Software Foundation. All rights reserved.
+ \* For details on use and redistribution please refer to the
+ \* LICENSE file included with these sources.
+ \*/
\ No newline at end of file