Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (25 sloc) 959 Bytes

[Java] Amateras StepCounter を Ant で駆動するときのメモ

名作ステップカウントライブラリである Amateras StepCounter を Ant 起動するときの記述例をメモ。

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="count">
  <taskdef name="stepcounter"
      classname="jp.sf.amateras.stepcounter.ant.StepCounterTask"
      classpath="lib/stepcounter-3.0.4-jar-with-dependencies.jar" />
  <target name="count">
    <stepcounter format="xml" output="output.xml"
        encoding="UTF-8" showDirectory="true">
      <fileset dir="src/main/java">
        <exclude name="**/package-info.java" />
        <include name="**/*.java" />
      </fileset>
      <fileset dir="src/main/resources">
        <exclude name="**/jquery*.js" />
        <include name="**/*.html" />
        <include name="**/*.js" />
      </fileset>
    </stepcounter>
  </target>
</project>

<@lastmodified date="2018-07-03"/>

You can’t perform that action at this time.