「Invoke Ant」ビルドステップで Ant ターゲットを動的に呼び出す方法はありますか? 次のような build.xml があるとします。
<target name="1" description="1">
<exec executable="${RES_DIR}/1.sh" failonerror="true">
</exec>
</target>
<target name="2" description="2">
<exec executable="${RES_DIR}/2.sh" failonerror="true">
</exec>
</target>
<target name="3" description="3">
<exec executable="${RES_DIR}/3.sh" failonerror="true">
</exec>
</target>
また、Jenkins ビルドですべてこの同じ build.xml を使用するが、ビルドごとに特定のターゲットを呼び出せるようにする必要があります。プロジェクトを作成する必要があるたびにこれらのターゲットをハードコーディングしたくありません。これは可能ですか、それとも事前にプロジェクトを作成して Ant ターゲットを手動で設定する必要がありますか?