build.xml was clened up from contrib reference
This commit is contained in:
parent
337382e08f
commit
e76b4a071d
95
build.xml
95
build.xml
|
|
@ -85,100 +85,5 @@
|
|||
</checkstyle>
|
||||
</target>
|
||||
|
||||
<target name="checkstyle.style"
|
||||
description="Runs checkstyle against it's own sources to test generation of error reports">
|
||||
<taskdef name="checkstyle"
|
||||
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
|
||||
<classpath refid="run.classpath"/>
|
||||
</taskdef>
|
||||
<delete file="${target.dir}/cachefile" />
|
||||
|
||||
<property name="checkstyle.pattern.todo" value="NOTHingWillMatCH_-"/>
|
||||
<property name="check.config" location="checkstyle_checks.xml"/>
|
||||
<checkstyle failonviolation="false" config="${check.config}">
|
||||
<fileset dir="src/checkstyle"
|
||||
includes="**/*.java,**/*.properties"
|
||||
excludes="**/Generated*.java,**/gui/*"/>
|
||||
<formatter type="xml" toFile="${target.dir}/cs_errors.xml"/>
|
||||
<classpath refid="run.classpath"/>
|
||||
<property key="checkstyle.cache.file" file="${target.dir}/cachefile"/>
|
||||
<property key="checkstyle.header.file" file="java.header"/>
|
||||
<property key="checkstyle.importcontrol.file" file="import-control.xml"/>
|
||||
<property key="checkstyle.suppressions.file"
|
||||
file="suppressions.xml"/>
|
||||
</checkstyle>
|
||||
<mkdir dir="${target.dir}/style/frames"/>
|
||||
<mkdir dir="${target.dir}/style/noframes"/>
|
||||
<mkdir dir="${target.dir}/style/noframes-sorted"/>
|
||||
<mkdir dir="${target.dir}/style/simple"/>
|
||||
<mkdir dir="${target.dir}/style/csv"/>
|
||||
<mkdir dir="target/style/author"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/noframes"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-noframes.xsl"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/noframes-sorted"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-noframes-sorted.xsl"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/frames"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-frames.xsl"/>
|
||||
<style basedir="${target.dir}"
|
||||
destdir="${target.dir}/style/simple"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-simple.xsl"/>
|
||||
<style out="${target.dir}/style/csv/report-csv.txt"
|
||||
in="${target.dir}/cs_errors.xml"
|
||||
style="contrib/checkstyle-csv.xsl"/>
|
||||
<style basedir="target"
|
||||
destdir="target/style/author"
|
||||
includes="cs_errors.xml"
|
||||
style="contrib/checkstyle-author.xsl"/>
|
||||
</target>
|
||||
|
||||
<?ignore
|
||||
<!-- A GRAVEYARD OF IDEAS BELOW -->
|
||||
|
||||
<!-- runs the command line version on a file -->
|
||||
<target name="run.checkstyle"
|
||||
description="Runs the command line version on a file">
|
||||
<java classname="com.puppycrawl.tools.checkstyle.Main"
|
||||
fork="yes"
|
||||
dir="."
|
||||
classpathref="run.classpath">
|
||||
<sysproperty key="checkstyle.allow.tabs" value="yes"/>
|
||||
<arg value="-c"/>
|
||||
<arg file="checkstyle_checks.xml"/>
|
||||
<arg value="src/testinputs/com/puppycrawl/tools/checkstyle/InputSimple.java"/>
|
||||
</java>
|
||||
<java classname="com.puppycrawl.tools.checkstyle.Main"
|
||||
fork="yes"
|
||||
dir="."
|
||||
classpathref="run.classpath">
|
||||
<arg value="-c"/>
|
||||
<arg file="checkstyle_checks.xml"/>
|
||||
<arg value="-r"/>
|
||||
<arg file="src/checkstyle/com/puppycrawl/tools/checkstyle/api"/>
|
||||
</java>
|
||||
</target>
|
||||
|
||||
<target name="checkstyle.run" depends="compile.checkstyle"
|
||||
description="Runs checkstyle.">
|
||||
<taskdef name="checkstyle"
|
||||
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
|
||||
<classpath refid="run.classpath"/>
|
||||
</taskdef>
|
||||
<delete file="${target.dir}/cachefile" />
|
||||
|
||||
<property name="checkstyle.pattern.todo" value="NOTHingWillMatCH_-"/>
|
||||
<property name="check.config" location="checkstyle_checks.xml"/>
|
||||
<checkstyle config="${custom.config}" file="${file.to.check}">
|
||||
<formatter type="plain"/>
|
||||
<formatter type="xml" toFile="${target.dir}/cs_errors.xml"/>
|
||||
<classpath refid="run.classpath"/>
|
||||
</checkstyle>
|
||||
</target>
|
||||
?>
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue