저는 디렉토리에있는 모든 파일을 가져와 5 개의 파일을 병렬로 실행하고 다음 5 개의 파일 만 다시 실행합니다. 이미 실행 된 파일은 다시 실행하면 안됩니다.디렉토리에서 파일을 가져 와서 한 번에 5 개씩 병렬로 실행하는 방법
<target name="ParallelTest" description="Checking the parallelTest">
<for param="file" >
<path>
<fileset dir="C:/RCBuild3/ofs/bin/prd1">
<include name="*.xml"/>
</fileset>
</path>
<sequential>
<antcall target="parallelexecutoin">
<param name="productfile" value="@{file}"/>
</antcall>
</sequential>
</for>
</target>
<target name="parallelexecutoin">
<exec dir="C:/RCBuild3/ofs/bin/" executable="cmd">
<arg value="/c"/>
<arg value="productupload.bat"/>
<arg value="-fileName"/>
<arg value="${productfile}"/>
</exec>
</target>
위의 코드는 순차적으로 실행됩니다. 첫째