<target name="build">
<for list="${platform}" param="platform" trim="true">
<sequential>
<if>
<equals arg1="${platform}" arg2="${project.SuppoortedPlatforms}" />
<then>
<antcall target="package.${platform}" />
</then>
</if>
</sequential>
</for>
</target>
런타임에서 값을 가져 오는 플랫폼 (예 : windows, ios) 및 project.SuppoortedPlatforms는 build.properties (예 : android, ios)에서 선언됩니다. 문자열 목록을 어떻게 비교할 수 있습니까? 누구든지이 문제를 해결할 수 있습니까?개미 - 어떻게 문자열 목록을 비교할 수 있습니까?
감사합니다, sandhiya
감사합니다. manouti, 이제 코드가 올바르게 작동합니다. – jass
답이 맞으면 대답을 수락하십시오. 아마 upvote. FAQ : http://stackoverflow.com/tour – Jayan