I want to run the most trivial build process -
init, and - clean, compile, sendReport which depend on init.

Now, I've wrote a MAIN target -
<target name="MAIN">
    <ant ...     clean />
    <ant ...     compile />

    <if result is ok, then prepare something>

    <ant ...     sendReport />
</target>

The problem - init is being called three times.

I know that the best way to do it is <target name="main" depends="init, clean, 
compile, sendReport" />

but the problem is that I have to do something between the compile and the 
sendReport targets.

how can I accomplish this?

Please advise.

Thanks,
    Guy.

Reply via email to