Anthill

コンパイルエラーを指摘するのがめんどい。
「こんなことでイライラする自分は神経質なんじゃないか?」とも思う。
ので、自動化ビルドツール Anthillを使ってみる。

サンプルプロジェクトをビルド

とりあえずダウンロード
アーカイブをC:/anthill-1.8.0.264に解凍し、dist/anthill.warを$TOMCAT_HOME/webappsにデプロイ。
で、Tomcatを起動。
はじめにAnthillのインストール先を聞かれるので「C:/anthill-1.8.0.264」と入力。



とりあえずサンプルをビルド。
裏でCVSクライアントが走っているのが見える…が、失敗。


javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: 192.168.2.203, port: 25

SMTPサーバが見つからなかったよう。
でも、WEBではビルド成功になってる…メールの送信に失敗しただけかな?
projects/anthill.registryにそれっぽい設定があったので修正。


anthill.mail.host = 192.168.2.203
anthill.mail.from = anthill@localhost

それから、WEBからビルドプロジェクトの設定を変更して、送付先を修正。
で、ビルド…されない…


cvs server: Logging Anthill-Example/source/test/example
00:27:50:784 [Thread - AnthillBuildDaemon] INFO com.urbancode.anthill.BuildManager - Build NOT required
00:27:50:784 [Thread - AnthillBuildDaemon] INFO com.urbancode.anthill.BuildManager - Build NOT required.

CVSリポジトリの変更を見ている?
仕方ないので[Force Build]にチェックを入れて、再びビルド。
で、また失敗…anthill.registryの変更が反映されていない。


Tomcatoを再起動して、ビルド成功。
以下のようなメールが来た。


Anthill version 1.8.0.264

Retrieving project files: OK
Incrementing version: OK
Build: OK
Project Site: http://localhost:8080/anthill/projects/CVS_Anthill-Example/

Build Log: http://localhost:8080/anthill/projects/CVS_Anthill-Example/buildLogs/CVS_Anthill-Example-1.0.8-build.log

Publish: NOT REQUIRED
Got Revisions: OK

                                                                        • -

C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\buildLogs\CVS_Anthill-Example-1.0.8-build.log
all:

dev-clean:

clean:

compile:
[mkdir] Created dir: C:\anthill-1.8.0.264\work\Anthill-Example\build\temp
[mkdir] Created dir: C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\classes
[javac] Compiling 1 source file to C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\classes
[copy] Copying 1 file to C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\classes

jars:
[jar] Building jar: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-1.0.8.jar

compile:

compile-tests:
[mkdir] Created dir: C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\tests\classes
[javac] Compiling 1 source file to C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\tests\classes
[jar] Building jar: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-tests-1.0.8.jar

run-tests:
[mkdir] Created dir: C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\tests\data
[junit] Running example.WidgetTestCase
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.721 sec
[junit] Testsuite: example.WidgetTestCase
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.721 sec

[junit] Testcase: testFailure(example.WidgetTestCase): FAILED
[junit] No reason, just wanted to fail
[junit] junit.framework.AssertionFailedError: No reason, just wanted to fail
[junit] at example.WidgetTestCase.testFailure(WidgetTestCase.java:56)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


[junit] Test example.WidgetTestCase FAILED
[junitreport] Transform time: 1362ms

doc:

javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] ????? example ?????????????????...
[javadoc] Javadoc ??????????...
[javadoc] ?? Doclet ????? 1.4.2_07
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\constant-values.html ???
[javadoc] ????????????????????????...
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\class-use\Widget.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\package-use.html ???
[javadoc] ?????????????????????????...
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\overview-tree.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\index-all.html ???
[javadoc] C:\anthill-1.8.0.264\work\Anthill-Example\source\java\example\Widget.java:12: warning - ?? @author ??????????
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\deprecated-list.html ???
[javadoc] ???????????????????...
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\allclasses-frame.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\allclasses-noframe.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\index.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\packages.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\package-frame.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\package-summary.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\package-tree.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\example\Widget.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\package-list ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\help-doc.html ???
[javadoc] C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\api\stylesheet.css ???
[javadoc] ?? 1 ?

todo:
[document] Generating Javadoc
[document] Javadoc execution
[document] ??????? C:\anthill-1.8.0.264\work\Anthill-Example\source\java\example\Widget.java ?????????...
[document] Javadoc ??????????...
[document] Running
[document] Create info lists for todo tags
[document] C:\anthill-1.8.0.264\work\Anthill-Example\source\java\example\Widget.java:12: warning - ?? @author ??????????
[document] ?? 1 ?

move-docs:

move-docs.private:

download:
[tar] Building tar: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-1.0.8-src.tar
[gzip] Building: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\download\Anthill-Example-1.0.8-src.tar.gz
[delete] Deleting: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-1.0.8-src.tar
[tar] Building tar: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-1.0.8.tar
[gzip] Building: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\download\Anthill-Example-1.0.8.tar.gz
[delete] Deleting: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\Anthill-Example-1.0.8.tar

jdepend:
[jdepend] sourcespath is deprecated in JDepend >= 2.5 - please convert to classespath
[jdepend] Output to be stored in C:\anthill-1.8.0.264\work\Anthill-Example\build\temp\jdepend-report.xml
[jdepend] java.lang.NoClassDefFoundError: jdepend/xmlui/JDepend
[jdepend] Exception in thread "main"
[jdepend] JDepend FAILED
[style] Transforming into C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\metrics

java2html:
[java] Java2HTML Version 1.0.8
[java] Copyright (c) 2000 Ritelink Computing Ltd.
[java] New Versions available from http://www.java2html.com
[java] (type j2h with no arguments to get help)
[java] Created C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\java2html\front.html
[java] Created C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\java2html\stylesheet.css
[java] Created: C:\anthill-1.8.0.264\publishDir\CVS_Anthill-Example\java2html\example\Widget.java.html

clean:
[delete] Deleting directory C:\anthill-1.8.0.264\work\Anthill-Example\build\temp

BUILD SUCCESSFUL
Total time: 20 seconds

一部、文字化け。
WEBから参照できるログは文字化けはなし。