<?xml version="1.0" encoding="UTF-8"?>

<project name="phase-compile" default="execute">

  <target name="execute">
    <propertyfile file="${mvn.project.build.outputDirectory}/checkstylecompilation.properties">
      <entry key="checkstyle.compile.version" value="${mvn.project.version}"/>
      <entry key="checkstyle.compile.timestamp" type="date" value="now" pattern="E MMMM dd yyyy, HH:mm z"/>
    </propertyfile>

    <javadoc sourcefiles="src/checkstyle/com/puppycrawl/tools/checkstyle/api/TokenTypes.java"
             encoding="iso-8859-1"
             source="1.5"
             failonerror="yes">
      <classpath>
        <pathelement location="${mvn.project.build.outputDirectory}"/>
        <pathelement path="${mvn.compile_classpath}"/>
      </classpath>
      <doclet name="com.puppycrawl.tools.checkstyle.doclets.TokenTypesDoclet"
              path="${mvn.project.build.outputDirectory}">
        <param name="-destfile"
               value="${mvn.project.build.outputDirectory}/com/puppycrawl/tools/checkstyle/api/tokentypes.properties"
               />
      </doclet>
    </javadoc>
  </target>
</project>
