Created
February 25, 2012 06:03
-
-
Save takezoe/1906829 to your computer and use it in GitHub Desktop.
StepCounterTaskを使用するAntビルドファイルの例
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project default="count" basedir="." > | |
<!-- 独自タスクの定義 相対パスからの target フォルダ配下にJARを置いてください。--> | |
<taskdef name="stepcounter" classname="jp.sf.amateras.stepcounter.ant.StepCounterTask" | |
classpath="target/stepcounter-3.0.1-SNAPSHOT-jar-with-dependencies.jar" /> | |
<taskdef name="diffcounter" classname="jp.sf.amateras.stepcounter.ant.DiffCounterTask" | |
classpath="target/stepcounter-3.0.1-SNAPSHOT-jar-with-dependencies.jar" /> | |
<target name="count"> | |
<!-- ステップ数をカウント formatはデフォルト/csv/excelが選択できます。--> | |
<stepcounter format="excel" output="count.xls" encoding="UTF-8" showDirectory="true"> | |
<fileset dir="src"> | |
<include name="**/*.java" /> | |
</fileset> | |
</stepcounter> | |
<!-- 差分をカウント --> | |
<diffcounter format="csv" output="diff.txt" encoding="UTF-8" | |
srcdir="test/sample/java/root1" olddir="test/sample/java/root2" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment