Ant スクリプトで現在抱えている問題を見て、解決策を持っている人がいることを願っています。Eclipse で Java コードをコンパイルするために Ant スクリプトを使用していますが、Eclipse でこれらのエラーが発生し続けます
[junitreport] Processing E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml to C:\Users\u0160235\AppData\Local\Temp\null1503375679
[junitreport] Loading stylesheet jar:file:/E:/software/apache/apache-ant-1.8.2/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml
BUILD FAILED
E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\developerbuild.xml:124: The following error occurred while executing this line:
E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\QunitAntScript.xml:20: Errors while applying transformations: Fatal error during transformation
私の環境設定:
- ウィンドウズ7
- Eclipse 3.6 RC2 32 ビット
- JDK 1.6 アップデート 32 32 ビット
- アリ 1.7.2
- Junit 4 (Eclipse 内): プロジェクトの jar フォルダーに junit-dep-4.8.2.jar があります
同じ ant スクリプトを使用して Eclipse の外部でコードをコンパイルすると、すべて正常に動作しますが、Eclipse 内では動作しません。上記のスタイルシートの上のエラーをグーグルで検索しようとしましたが、あまり役に立ちませんでした。私の推測では、どういうわけか、Eclipse 内で異なるバージョンの junit が使用されていますが、間違っている可能性があります。