The apply ant task should do you need. Replace the list of exec by :
<apply executable="protoc/protoc.exe" parallel="false">
<arg value="--java_out=target/generated-sources"/>
<srcfile/>
<arg value="--proto_path=src/main/protos"/>
<fileset dir="${basedir}/src/main/protos" includes="*.proto"/>
</apply>