dependent target getting excecute multiple times in a parallel target call

梦想与她 提交于 2019-12-12 02:22:14

问题


i want to run few targets of ANT build in parallel. here is the code i tried

<project name="cis" default="release">

    <property name="Run_excecuted" value="false"/> 

    <target name="run_main">
        <sequential>
            <parallel> 
                <antcall target="dashboard" /> 
                <antcall target="remTraces" /> 
                <param name="Run_excecuted" value="true"/> 
            </parallel> 
        </sequential> 
    </target> 

I have set a property Run_excecuted in the build and have added the condition unless="Run_excecuted" in the required targets

<target name="dashboard" depends="prepare" unless="Run_excecuted">
<target name="remTraces" depends="prepare" unless="Run_excecuted"> 

what is happening is the antcalls are getting invoked in separate instances parallely and the dependencies are getting calculated again. Because of this target "prepare" is running multiple times. i dont want this to happen.How can i do this? property Run_excecuted being set is not helping.

来源:https://stackoverflow.com/questions/19677381/dependent-target-getting-excecute-multiple-times-in-a-parallel-target-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!