How to pass multiple values to one parameter outside the macro def in ant build

331 Views Asked by At

How to pass multiple parameters to a target in Ant?

A macrodef is defined as shown below:

<macrodef name="execEtlBinScript">
   <attribute name="script" />
   <attribute name="resultproperty" />
   <sequential>
      <exec executable="@{script}" resultproperty="@{resultproperty}" />
   </sequential>
</macrodef>

We will be passing the values like this to the above macrodef:

<execEtlBinScript script="somescript" resultproperty="status1" />

But, can I pass like this?

<execEtlBinScript script="somescript, other script" resultproperty="status1, status2" />
0

There are 0 best solutions below