build.xml
フィールドに動的にパラメーターを受け取る必要がありますdepends
。このパラメーターを次のapp.xml
ような他のもので定義します。
ops=op1, op2, op3,op4,op5,.... opn
app.xml
次に、これをにインポートし、そこでbuild.xml
パラメーターを使用したいと考えていますops
。
<project name="Project" basedir="." default="help">
<target name="test" depends="{$ops}" description="executea series of commands in ant">
<echo message="batch operation job done. tasks = {$ops}"/>
</target>
</project>
ある ant ファイルから別の ant ファイルにパラメーターを渡すにはどうすればよいですか?