target外のタスク
ビルドスクリプト内で、targetタグの外に実装したタスクがある場合、
そのファイルのターゲットをantcallタスクでコールすると、
コールした回数分、target外のタスクが実行されるっぽい。
でも、dependsにターゲットを並べておいた場合は、
1回しか実行されない。
というわけで、サンプル。
<?xml version="1.0" encoding="Shift_JIS"?>
main1を実行した結果。
[echo] Hello
main1:
[echo] Hello
test1:
[echo] test1
[echo] Hello
test2:
[echo] test2
[echo] Hello
test3:
[echo] test3
[echo] main1
main2を実行した結果。
[echo] Hello
test1:
[echo] test1
test2:
[echo] test2
test3:
[echo] test3
main2:
[echo] main2
うーん、プロパティファイルを無駄に何回も読み込んでた・・・。