(当方、antについてほぼ無知のプログラマーです。)
antでcheckstyleを実行したいのですが、なぜかエラーが出るばかりです。
xml
1 <!-- ================================= 2 target: checkstyle 3 ================================= --> 4 <target name="CheckStyle"> 5 <taskdef resource="checkstyletask.properties" classpath="C:\jarがあるパス\checkstyle-6.14.1-all.jar" /> 6 <checkstyle config="C:\workspace\OrginalCheckStyle.xml" failureProperty="checkstyle.failure" failOnViolation="false"> 7 <formatter type="xml" tofile="checkstyle_report.xml" /> 8 <fileset dir="src" includes="**/*.java" /> 9 </checkstyle> 10 <style in="checkstyle_report.xml" out="checkstyle_report.html" style="checkstyle-noframes.xsl" /> 11 </target>
下記がエラーログです。
Buildfile: C:\・・・\build.xml CheckStyle: [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found. BUILD FAILED C:\・・・\build.xml:154: Problem: failed to create task or type checkstyle Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
自分なりの分析
-
OrginalCheckStyle.xmlについては、エクリプス上からは参照できており、別プロジェクトでの使用実績もあるため、このファイルでの原因はないと思います。
-
checkstyle-6.14.1-all.jarについてはパスを通しているはずですが、正直確信が持てません。。
どなたか、原因を教えていただきたいです。
3時間ぐらいはまっています。。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/10 05:41 編集
2016/03/09 14:12
2016/03/10 10:09