Code Search for Developers
 
 
  

checkstyle.xml from SmartFrog at Krugle


Show checkstyle.xml syntax highlighted

<project name="checkstyle" basedir="." default="checkstyle">

  <description>
    This is an import library that runs
    checkstyle.
  </description>

  <!-- import the core -->
  <import file="core.xml"/>


  <target name="checkstyle-init" depends="init-core">

    <typedef resource="checkstyletask.properties"
             uri="antlib:com.puppycrawl.checkstyle"
             onerror="failall"/>
    <property name="checkstyle.dir"
              location="${antbuild.xml.dir}/checkstyle"/>
    <property name="checkstyle.policy"
              location="${checkstyle.dir}/checkstyle-policy.xml"/>             
    <property name="stylesheet.html" 
      location="${checkstyle.dir}/checkstyle-frames.xsl"/>
    <property name="stylesheet.text" 
      location="${checkstyle.dir}/checkstyle-text.xsl"/>
    <property name="stylesheet.xdoc" 
      location="${checkstyle.dir}/checkstyle-xdoc.xsl"/>
              
    <property name="build.checkstyle.dir" 
      location="${build.dir}/checkstyle" />
    <mkdir dir="${build.checkstyle.dir}" /> 
    <property name="checkstyle.report.xml" 
      location="${build.checkstyle.dir}/checkstyle.xml" />
    <property name="checkstyle.report.html" 
      location="${build.checkstyle.dir}/checkstyle.html" />
  </target>

  <target name="checkstyle-run" depends="checkstyle.checkstyle-init"
      xmlns:cs="antlib:com.puppycrawl.checkstyle">

    <cs:checkstyle 
      failOnViolation="false"
      failureProperty="checkstyle.failed"
      config="${checkstyle.policy}">
      <formatter type="xml" toFile="${checkstyle.report.xml}"/>
      <fileset dir="${src.dir}" includes="**/*.java"/>
    </cs:checkstyle>

  </target>

  <target name="checkstyle-report"  depends="checkstyle.checkstyle-run"
    if="checkstyle.failed">
    
    <xslt in="${checkstyle.report.xml}" 
          style="${stylesheet.html}"
           out="${build.checkstyle.dir}/html/output.txt">
      <param name="basedir" expression="${build.checkstyle.dir}"/>
    </xslt>
    <xslt in="${checkstyle.report.xml}" style="${stylesheet.xdoc}"
           out="${build.checkstyle.dir}/xdocs/index.xml">
      <param name="basedir" expression="${build.checkstyle.dir}"/>
    </xslt>    
    
    <fail>
      Checkstyle reported style failures. See
      ${build.checkstyle.dir}
    </fail>
  </target>
  
  <target name="checkstyle" depends="checkstyle.checkstyle-report" />
  
</project>



See more files for this project here

SmartFrog

SmartFrog (Smart Framework for Object Groups) is a framework for configuring and automatically activating distributed applications. \r\nThe SmartFrog framework is released under LGPL license.\r\nMore info at: www.smartfrog.org

Project homepage: http://sourceforge.net/projects/smartfrog
Programming language(s): Java,XML
License: other

  checkstyle/
    checkstyle-config
    checkstyle-frames.xsl
    checkstyle-policy.xml
    checkstyle-text.xsl
    checkstyle-xdoc.xsl
  checkstyle.xml
  classpaths.xml
  compile-and-jar-mixin.xml
  core.xml
  daemon.xml
  dist.xml
  gui.xml
  ivy-mixin.xml
  javadoc-mixin.xml
  m2.xml
  macros-mixin.xml
  maven-v4_0_0.xsd
  rpm.xml
  security-mixin.xml
  sftasks.xml
  state.xml
  systemtest.xml
  unittest.xml